[hackers] [wmii] Fixed the error returned on kill and Urgent commands to clients.

From: Kris Maglione <jg_AT_suckless.org>
Date: Sun Feb 11 18:36:13 2007

changeset: 1844:8f6e8f992395
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sun Feb 11 12:33:05 2007 -0500
summary: Fixed the error returned on kill and Urgent commands to clients.

diff -r 8c70a41758bc -r 8f6e8f992395 client.c
--- a/client.c Sun Feb 11 03:02:00 2007 -0500
+++ b/client.c Sun Feb 11 12:33:05 2007 -0500
@@ -781,9 +781,9 @@ message_client(Client *c, char *message)
 message_client(Client *c, char *message) {
         if(!strncmp(message, "kill", 5))
                 kill_client(c);
- if(!strncmp(message, "Urgent", 7))
+ else if(!strncmp(message, "Urgent", 7))
                 set_urgent(c, True, True);
- if(!strncmp(message, "NotUrgent", 10))
+ else if(!strncmp(message, "NotUrgent", 10))
                 set_urgent(c, False, True);
         else
                 return Ebadcmd;
Received on Sun Feb 11 2007 - 18:36:13 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:10 UTC