Commit 05daf09f188eab153f8807e4103d1d581d0fa162

Dan Nicholson 2009-03-31T07:09:47

xkbcomp: Kill warnings about address always evaluating as true

diff --git a/src/xkbcomp/geometry.c b/src/xkbcomp/geometry.c
index 0b66173..edde7c2 100644
--- a/src/xkbcomp/geometry.c
+++ b/src/xkbcomp/geometry.c
@@ -2536,7 +2536,7 @@ HandleOverlayDef(OverlayDef * def,
         {
             WSGO("Couldn't allocate OverlayKeyInfo\n");
             ACTION2("Overlay %s for section %s will be incomplete\n",
-                    oiText(&ol), scText(si));
+                    XkbcAtomText(ol.name), scText(si));
             return False;
         }
         strncpy(key->over, keyDef->over, XkbKeyNameLength);
diff --git a/src/xkbcomp/utils.h b/src/xkbcomp/utils.h
index 65e37c8..ccdc5dd 100644
--- a/src/xkbcomp/utils.h
+++ b/src/xkbcomp/utils.h
@@ -237,7 +237,7 @@ uInformation(const char * /* s */ , ...
     );
 #endif
 #ifdef HAVE_STRDUP
-#define	uStringDup(s1)		((s1) ? strdup(s1) : NULL)
+#define	uStringDup(s1)		(strdup(s1))
 #else
      extern char *uStringDup(const char *       /* s1 */
     );