]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/res-fd.c
ABI: Symbol renames for libucw and libcharset
[libucw.git] / ucw / res-fd.c
index 44ce4a3639e26cec659cd560503111d4f2236e04..a948b052d07f03e8c5c93a948f6c66ff17732102 100644 (file)
@@ -7,8 +7,8 @@
  *     of the GNU Lesser General Public License.
  */
 
-#include "ucw/lib.h"
-#include "ucw/respool.h"
+#include <ucw/lib.h>
+#include <ucw/resource.h>
 
 #include <stdio.h>
 #include <unistd.h>
@@ -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;
 }