* 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>
}
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 = {
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;
}