no longer (unused) icon slot
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
#define CMDLENGTH 50
|
||||
|
||||
typedef struct {
|
||||
char* icon;
|
||||
char* command;
|
||||
unsigned int interval;
|
||||
unsigned int signal;
|
||||
@@ -56,7 +55,6 @@ void getcmd(const Block *block, char *output)
|
||||
output[0] = block->signal;
|
||||
output++;
|
||||
}
|
||||
strcpy(output, block->icon);
|
||||
char* cmd;
|
||||
FILE *cmdf;
|
||||
if (button)
|
||||
@@ -74,10 +72,8 @@ void getcmd(const Block *block, char *output)
|
||||
}
|
||||
if (!cmdf)
|
||||
return;
|
||||
char c;
|
||||
int i = strlen(block->icon);
|
||||
fgets(output+i, CMDLENGTH-i, cmdf);
|
||||
i = strlen(output);
|
||||
fgets(output, CMDLENGTH, cmdf);
|
||||
int i = strlen(output);
|
||||
if (delim != '\0' && i)
|
||||
output[i++] = delim;
|
||||
output[i++] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user