[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdemultimedia/kscd/libwm
From:       Dirk Mueller <mueller () kde ! org>
Date:       2004-02-22 3:42:30
Message-ID: 20040222034230.1FF229965 () office ! kde ! org
[Download RAW message or body]

CVS commit by mueller: 

- fix broken logic (x <= y <= z)
- fix compiler warnings


  M +4 -6      wm_helpers.c   1.5


--- kdemultimedia/kscd/libwm/wm_helpers.c  #1.4:1.5
@@ -27,6 +27,4 @@
  */
 
-static char wm_helpers_id[] = "$Id$";
-
 #include <stdio.h>
 #include <string.h>
@@ -111,5 +109,5 @@ wm_strmcpy( char **t, const char *s )
         if (*t != NULL)
           {
-            wm_lib_message(WM_MSG_CLASS_MISC | WM_MSG_LEVEL_DEBUG, "wm_strmcpy \
freeing pointer 0x%08X\n", *t); +            wm_lib_message(WM_MSG_CLASS_MISC | \
WM_MSG_LEVEL_DEBUG, "wm_strmcpy freeing pointer %p\n", *t);  free(*t);
           }
@@ -122,5 +120,5 @@ wm_strmcpy( char **t, const char *s )
         }
 
-        wm_lib_message(WM_MSG_CLASS_MISC | WM_MSG_LEVEL_DEBUG, "wm_strmcpy finally \
copying (0x%08X, '%s')\n", *t, s); +        wm_lib_message(WM_MSG_CLASS_MISC | \
WM_MSG_LEVEL_DEBUG, "wm_strmcpy finally copying (%p, '%s')\n", *t, s);  strncpy(*t, \
s, strlen(s));  } /* wm_strmcpy() */
@@ -170,5 +168,5 @@ wm_strdup( char *s )
 void wm_lib_set_verbosity( int level )
 {
-        if( WM_MSG_LEVEL_NONE <= level <= WM_MSG_LEVEL_DEBUG )
+        if( WM_MSG_LEVEL_NONE <= level && level <= WM_MSG_LEVEL_DEBUG )
         {
                 wm_lib_verbosity = level;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic