diff options
author | Aidan Hubert <torrinfail@gmail.com> | 2019-11-27 05:50:38 +0000 |
---|---|---|
committer | Aidan Hubert <torrinfail@gmail.com> | 2019-11-27 05:50:38 +0000 |
commit | b685f2805f483c2a0df89695ac7a7f472172debe (patch) | |
tree | 50393a07344e4e5a0fa7443b390f81d6fdcc88cf /dwmblocks.c | |
parent | 1766af7d5e0facb911c664584fc703c5f8f89092 (diff) | |
download | dwmblocks-b685f2805f483c2a0df89695ac7a7f472172debe.tar.gz dwmblocks-b685f2805f483c2a0df89695ac7a7f472172debe.tar.bz2 dwmblocks-b685f2805f483c2a0df89695ac7a7f472172debe.zip |
Fixed garbled last commit
Diffstat (limited to 'dwmblocks.c')
-rw-r--r-- | dwmblocks.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/dwmblocks.c b/dwmblocks.c index 3071243..395b565 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -33,10 +33,7 @@ static Window root; static char statusbar[LENGTH(blocks)][50] = {0}; static char statusstr[2][256]; static int statusContinue = 1; -<<<<<<< HEAD static void (*writestatus) () = setroot; -======= ->>>>>>> 5ff59d4e8ba9c64963d36c8ea51e7a1d644aef48 void replace(char *str, char old, char new) { @@ -99,21 +96,12 @@ void setupsignals() int getstatus(char *str, char *last) { strcpy(last, str); -<<<<<<< HEAD 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]); } -<<<<<<< HEAD str[strlen(str)-1] = '\0'; -======= - str[--j] = '\0'; ->>>>>>> 5ff59d4e8ba9c64963d36c8ea51e7a1d644aef48 return strcmp(str, last);//0 if they are the same } |