diff options
Diffstat (limited to 'save.c')
-rw-r--r-- | save.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -200,8 +200,6 @@ read_counted_string(FILE *file, char **stringp) int WriteProxyFileEntry(FILE *proxyFile, WinInfo *theWindow) { - int i; - if (!write_counted_string (proxyFile, theWindow->client_id)) return 0; if (!write_counted_string (proxyFile, theWindow->class.res_name)) @@ -220,7 +218,7 @@ WriteProxyFileEntry(FILE *proxyFile, WinInfo *theWindow) { if (!write_byte (proxyFile, (char) theWindow->wm_command_count)) return 0; - for (i = 0; i < theWindow->wm_command_count; i++) + for (int i = 0; i < theWindow->wm_command_count; i++) if (!write_counted_string (proxyFile, theWindow->wm_command[i])) return 0; } @@ -454,10 +452,10 @@ LookupClientID(WinInfo *theWindow) strcmp (theWindow->class.res_class, ptr->class.res_class) == 0 && strcmp (theWindow->wm_name, ptr->wm_name) == 0) { - int i; - if (theWindow->wm_command_count == ptr->wm_command_count) { + int i; + for (i = 0; i < theWindow->wm_command_count; i++) if (strcmp (theWindow->wm_command[i], ptr->wm_command[i]) != 0) |