X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Fres-fd.c;h=a948b052d07f03e8c5c93a948f6c66ff17732102;hb=a77334e6d3812eb8fbf51563be35b97c1edfdab2;hp=44ce4a3639e26cec659cd560503111d4f2236e04;hpb=aeb6304585a714ebff73955095d9b49863ebb199;p=libucw.git diff --git a/ucw/res-fd.c b/ucw/res-fd.c index 44ce4a36..a948b052 100644 --- a/ucw/res-fd.c +++ b/ucw/res-fd.c @@ -7,8 +7,8 @@ * of the GNU Lesser General Public License. */ -#include "ucw/lib.h" -#include "ucw/respool.h" +#include +#include #include #include @@ -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; }