diff options
author | Nathan Angelacos <nangel@alpinelinux.org> | 2008-04-16 10:06:25 +0000 |
---|---|---|
committer | Nathan Angelacos <nangel@alpinelinux.org> | 2008-04-16 10:06:25 +0000 |
commit | b91a4a4d1ac83161e78645a987fe168eb1df220b (patch) | |
tree | b2f516a213a2d4bf575aad0fbb6da95b4fcf8805 /src | |
parent | 481c59a48473fec39e36d5dcb8f783cd2985f3ac (diff) | |
download | haserl-b91a4a4d1ac83161e78645a987fe168eb1df220b.tar.bz2 haserl-b91a4a4d1ac83161e78645a987fe168eb1df220b.tar.xz |
Fix the -d debug thing again
Diffstat (limited to 'src')
-rw-r--r-- | src/haserl.c | 2 | ||||
-rw-r--r-- | src/llist.h | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/src/haserl.c b/src/haserl.c index 8477e5e..3126c41 100644 --- a/src/haserl.c +++ b/src/haserl.c @@ -141,7 +141,7 @@ struct option ga_long_options[] = { {0, 0, 0, 0} }; -const char *gs_short_options = "vhDu:U:H:ans:S"; +const char *gs_short_options = "vhdu:U:H:ans:S"; /* * Convert 2 char hex string into char it represents diff --git a/src/llist.h b/src/llist.h new file mode 100644 index 0000000..03c4e88 --- /dev/null +++ b/src/llist.h @@ -0,0 +1,20 @@ +/* + * Linked List functions, should be api compatible with Busybox + * These are the function declarations from the libbb.h file + */ +#ifndef _LLIST_H +#define _LLIST_H 1 + +typedef struct llist_t { + char *data; + struct llist_t *link; +} llist_t; + +void llist_add_to(llist_t **old_head, void *data); +void llist_add_to_end(llist_t **list_head, void *data); +void *llist_pop(llist_t **elm); +void llist_unlink(llist_t **head, llist_t *elm); +void llist_free(llist_t *elm, void (*freeit)(void *data)); + + +#endif /* LLIST_H */ |