src/server/daemon/config.c

changeset 71
069c152f6272
parent 70
4e6e812c1d97
child 72
9b888965f3ee
child 74
5bc6d078fb2c
--- a/src/server/daemon/config.c	Thu Jun 20 14:07:46 2013 +0200
+++ b/src/server/daemon/config.c	Fri Jun 21 12:10:44 2013 +0200
@@ -251,7 +251,7 @@
     uint32_t ref = ws_atomic_dec32(&cfg->ref);
     if(ref == 0) {
         // TODO: free configuration
-        printf("free ServerConfiguration %d\n", cfg);
+        printf("free ServerConfiguration %"PRIxPTR"\n", (intptr_t)cfg);
     }
 }
 
@@ -462,7 +462,7 @@
         name = sstrdup(name);
         
         AuthDB *authdb = create_ldap_authdb(name.ptr, &conf);
-        printf("authdb: %d\n", authdb);
+        printf("authdb: %"PRIxPTR"\n", (intptr_t)authdb);
         ucx_map_sstr_put(cfg->authdbs, name, authdb);
         
         // TODO: create_ldap_authdb should copy the strings
@@ -506,7 +506,7 @@
         // add keyfile authdb
         Keyfile *keyfile = f->data;
         keyfile->authdb.name = sstrdup(name).ptr;
-        printf("authdb: %d\n", keyfile);
+        printf("authdb: %"PRIxPTR"\n", (intptr_t)keyfile);
         ucx_map_sstr_put(cfg->authdbs, name, keyfile);
     }
 
@@ -641,7 +641,7 @@
 void object_conf_unref(HTTPObjectConfig *conf) {
     uint32_t ref = ws_atomic_dec32(&conf->ref);
     if(ref == 0) {
-        printf("free HTTPObjectConfig %x\n", conf);
+        printf("free HTTPObjectConfig %"PRIxPTR"\n", (intptr_t)conf);
         pool_destroy(conf->pool);
     }
 }
@@ -770,7 +770,7 @@
 void mime_conf_unref(MimeMap *conf) {
     uint32_t ref = ws_atomic_dec32(&conf->ref);
     if(ref == 0) {
-        printf("free MimeConfig %x\n", conf);
+        printf("free MimeConfig %"PRIxPTR"\n", (intptr_t)conf);
         UcxMapIterator i = ucx_map_iterator(conf->map);
         char *str;
         UCX_MAP_FOREACH(str, i) {

mercurial