Fix signed/unsigned comparison
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 5 May 2011 16:53:12 +0000 (18:53 +0200)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 5 May 2011 21:44:38 +0000 (23:44 +0200)
src/vserver-info.c

index 824744f..29a3b0c 100644 (file)
@@ -248,7 +248,7 @@ getAPIConfig(char *buf)
   vc_vci_t     v = vc_get_vci();
   size_t       l;
   
-  if (v==-1) return 0;
+  if (v==(vc_vci_t)-1) return 0;
 
   l = utilvserver_fmt_xuint64(0, (unsigned int)v);
   memcpy(buf, "0x0000000000000000", 19);