Renamed statusstr to statustext

This commit is contained in:
Ashish Kumar Yadav 2020-11-25 01:37:36 +05:30
parent ef29c7ddd5
commit 01f1481f54

View file

@ -35,7 +35,7 @@ static int updatestatus();
static void writepid(); static void writepid();
static int statuscontinue = 1; static int statuscontinue = 1;
static char statusstr[STTLENGTH]; static char statustext[STTLENGTH];
static size_t delimlength; static size_t delimlength;
static Display *dpy; static Display *dpy;
static sigset_t blocksigmask; static sigset_t blocksigmask;
@ -114,7 +114,7 @@ void
setroot() setroot()
{ {
if (updatestatus()) { if (updatestatus()) {
XStoreName(dpy, DefaultRootWindow(dpy), statusstr); XStoreName(dpy, DefaultRootWindow(dpy), statustext);
XSync(dpy, False); XSync(dpy, False);
} }
} }
@ -203,11 +203,11 @@ termhandler(int signum)
statuscontinue = 0; statuscontinue = 0;
} }
/* returns whether block outputs have changed and updates statusstr if they have */ /* returns whether block outputs have changed and updates statustext if they have */
int int
updatestatus() updatestatus()
{ {
char *s = statusstr; char *s = statustext;
char *c, *p; /* for cmdoutcur and cmdoutprv */ char *c, *p; /* for cmdoutcur and cmdoutprv */
const char *d; /* for delimiter */ const char *d; /* for delimiter */
Block *block = blocks; Block *block = blocks;