summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-05-10 13:12:50 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-05-10 13:12:50 (EDT)
commitceb7c5fd1ee2705b09aac143931a925a6f23d7eb (patch)
tree1cc4e748970bcafd33d0dcafffb8a8d3ee8879c7
parentb251117ddd460bb2209f565d71121b17b4385881 (diff)
dirent: Remove test code
-rw-r--r--src/dirent.c29
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;
-}