diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dirent.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/dirent.c b/src/dirent.c index 7f361da..f0377c8 100644 --- a/src/dirent.c +++ b/src/dirent.c @@ -109,32 +109,3 @@ opkg_opk_dirent_name_prefix(struct opkg_opk_dirent *dirent, char *name_buf, return OPKG_OPK_OK; } - -int -main() -{ - struct opkg_opk_dirent foo = { - .name = "foo", - .parent = NULL, - }; - struct opkg_opk_dirent bar = { - .name = "bar", - .parent = &foo, - }; - struct opkg_opk_dirent baz = { - .name = "baz", - .parent = &bar, - }; - char name[8]; - char pref[4]; - - if (opkg_opk_dirent_name_prefix(&baz, name, sizeof(name), - pref, sizeof(pref)) != OPKG_OPK_OK) { - puts("Error building name parts"); - return EXIT_FAILURE; - } - puts(name); - puts(pref); - - return EXIT_SUCCESS; -} |