]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/res-fd.c
Resources: Allow res_free(NULL) and res_detach(NULL)
[libucw.git] / ucw / res-fd.c
index 44ce4a3639e26cec659cd560503111d4f2236e04..ab04b8e7c151e9db0e7c957c9488e88bfeb95364 100644 (file)
@@ -20,9 +20,9 @@ fd_res_free(struct resource *r)
 }
 
 static void
-fd_res_dump(struct resource *r)
+fd_res_dump(struct resource *r, uns indent UNUSED)
 {
-  printf(" fd=%d", (int)(intptr_t) r->priv);
+  printf(" fd=%d\n", (int)(intptr_t) r->priv);
 }
 
 static const struct res_class fd_res_class = {
@@ -44,7 +44,7 @@ int main(void)
   struct respool *rp = rp_new("test", NULL);
   rp_switch(rp);
   res_for_fd(1);
-  rp_dump(rp);
+  rp_dump(rp, 0);
   rp_delete(rp);
   return 0;
 }