Fix gcc-4.0 compile warnings and errors.
[srvx.git] / src / saxdb.c
index 88f8352e614b90dc570e8975df4bf7b76db7fafa..4028ccfc25a49bf8ff6ccc1618c90b8454a8fe18 100644 (file)
@@ -296,7 +296,7 @@ saxdb_write_string(struct saxdb_context *dest, const char *name, const char *val
 
 void
 saxdb_write_int(struct saxdb_context *dest, const char *name, unsigned long value) {
-    unsigned char buf[16];
+    char buf[16];
     /* we could optimize this to take advantage of the fact that buf will never need escapes */
     snprintf(buf, sizeof(buf), "%lu", value);
     saxdb_write_string(dest, name, buf);