]> git.armaanb.net Git - dwmblocks.git/commitdiff
Fixed garbled last commit
authorAidan Hubert <torrinfail@gmail.com>
Wed, 27 Nov 2019 05:50:38 +0000 (05:50 +0000)
committerAidan Hubert <torrinfail@gmail.com>
Wed, 27 Nov 2019 05:50:38 +0000 (05:50 +0000)
dwmblocks.c

index 30712432b175e3246463c0a527f7bb43c4099e33..395b5654aa80d70b848b26214857bd353067e43d 100644 (file)
@@ -33,10 +33,7 @@ static Window root;
 static char statusbar[LENGTH(blocks)][50] = {0};
 static char statusstr[2][256];
 static int statusContinue = 1;
 static char statusbar[LENGTH(blocks)][50] = {0};
 static char statusstr[2][256];
 static int statusContinue = 1;
-<<<<<<< HEAD
 static void (*writestatus) () = setroot;
 static void (*writestatus) () = setroot;
-=======
->>>>>>> 5ff59d4e8ba9c64963d36c8ea51e7a1d644aef48
 
 void replace(char *str, char old, char new)
 {
 
 void replace(char *str, char old, char new)
 {
@@ -99,21 +96,12 @@ void setupsignals()
 int getstatus(char *str, char *last)
 {
        strcpy(last, str);
 int getstatus(char *str, char *last)
 {
        strcpy(last, str);
-<<<<<<< HEAD
        str[0] = '\0';
        for(int i = 0; i < LENGTH(blocks); i++)
        str[0] = '\0';
        for(int i = 0; i < LENGTH(blocks); i++)
-=======
-       int j = 0;
-       for(int i = 0; i < LENGTH(blocks); j+=strlen(statusbar[i++]))
->>>>>>> 5ff59d4e8ba9c64963d36c8ea51e7a1d644aef48
        {       
                strcat(str, statusbar[i]);
        }
        {       
                strcat(str, statusbar[i]);
        }
-<<<<<<< HEAD
        str[strlen(str)-1] = '\0';
        str[strlen(str)-1] = '\0';
-=======
-       str[--j] = '\0';
->>>>>>> 5ff59d4e8ba9c64963d36c8ea51e7a1d644aef48
        return strcmp(str, last);//0 if they are the same
 }
 
        return strcmp(str, last);//0 if they are the same
 }