From 80b641486b6e2e5c52c5dc720353f2f1aa9efdbe Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Tue, 9 Mar 1999 23:06:14 +0000 Subject: [PATCH] Declare functions before use. Change some functions to return void. --- contrib/saucer/main.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/contrib/saucer/main.c b/contrib/saucer/main.c index 19f31777be..c507525594 100644 --- a/contrib/saucer/main.c +++ b/contrib/saucer/main.c @@ -76,10 +76,18 @@ int cmd_quit(char **cmdargv, int cmdargc); int cmd_search(char **cmdargv, int cmdargc); int cmd_set(char **cmdargv, int cmdargc); int cmd_show(char **cmdargv, int cmdargc); + +int bind_user(void); +void display_search_results(LDAPMessage *result); +int do_command(char *cmd); +void do_commands(FILE *file); +int is_whitespace(register char *s); char *make_dn(char *dn, int relative); +void show_syntax(int cmdnum); char *skip_to_char(register char *s, register int c); char *skip_to_whitespace(register char *s); char *skip_whitespace(register char *s); +int table_lookup(char *word, char **table, int table_count); FILE *user_tailor(void); static char *binary_attrs[] = { "audio", "jpegPhoto", "personalSignature", "photo" }; @@ -424,7 +432,7 @@ int cmd_show(char **cmdargv, int cmdargc) return 0; } -display_search_results(LDAPMessage *result) +void display_search_results(LDAPMessage *result) { BerElement *cookie; int i; @@ -662,7 +670,7 @@ char *make_dn(char *dn, int relative) return strcat(strcat(strcpy(dn_buf, dn), ", "), default_dn); } -show_syntax(int cmdnum) +void show_syntax(int cmdnum) { printf("Syntax: %s %s\n", cmdtable[cmdnum].cmd, cmdtable[cmdnum].help_msg); } -- 2.39.5