aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-05-26 13:54:07 +0000
committerGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-05-26 13:54:07 +0000
commit8379053b11aa616f47003c33afa44353f4a74f8f (patch)
tree49ca075f6c5b75bbeeae6c9dae354380542ef73a /include
parent76b82cfd6f06bcc65850eb045f05a2c9af861d83 (diff)
downloadbusybox-8379053b11aa616f47003c33afa44353f4a74f8f.tar.gz
busybox-8379053b11aa616f47003c33afa44353f4a74f8f.tar.bz2
- move llist to top of file so we can potentially use it in all prototypes easily
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 928e25d30..82d215bfe 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -79,6 +79,16 @@
#endif
+typedef struct llist_s {
+ char *data;
+ struct llist_s *link;
+} llist_t;
+extern llist_t *llist_add_to(llist_t *old_head, char *new_item);
+extern llist_t *llist_add_to_end(llist_t *list_head, char *data);
+extern void *llist_pop(llist_t **elm);
+extern void llist_free(llist_t *elm, void (*freeit)(void *data));
+
+
extern void bb_show_usage(void) ATTRIBUTE_NORETURN ATTRIBUTE_EXTERNALLY_VISIBLE;
extern void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2)));
extern void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2)));
@@ -474,15 +484,6 @@ extern int compare_string_array(const char * const string_array[], const char *k
extern int my_query_module(const char *name, int which, void **buf, size_t *bufsize, size_t *ret);
-typedef struct llist_s {
- char *data;
- struct llist_s *link;
-} llist_t;
-extern llist_t *llist_add_to(llist_t *old_head, char *new_item);
-extern llist_t *llist_add_to_end(llist_t *list_head, char *data);
-extern void *llist_pop(llist_t **elm);
-extern void llist_free(llist_t *elm, void (*freeit)(void *data));
-
extern void print_login_issue(const char *issue_file, const char *tty);
extern void print_login_prompt(void);