diff options
-rw-r--r-- | networking/ifupdown.c | 2 | ||||
-rw-r--r-- | shell/cmdedit.c | 12 | ||||
-rw-r--r-- | sysklogd/syslogd.c | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index e07167aef..68fdd37d4 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c @@ -381,7 +381,7 @@ static struct method_t methods_ipx[] = { { "static", static_up_ipx, static_down_ipx, }, }; -struct address_family_t addr_ipx = { +static struct address_family_t addr_ipx = { "ipx", sizeof(methods_ipx) / sizeof(struct method_t), methods_ipx diff --git a/shell/cmdedit.c b/shell/cmdedit.c index 6e3ae07f9..c4cb9d9c4 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c @@ -1263,7 +1263,7 @@ void setvimode ( int viflag ) vi_mode = viflag; } -void +static void vi_Word_motion(char *command, int eat) { while (cursor < len && !isspace(command[cursor])) @@ -1272,7 +1272,7 @@ vi_Word_motion(char *command, int eat) input_forward(); } -void +static void vi_word_motion(char *command, int eat) { if (isalnum(command[cursor]) || command[cursor] == '_') { @@ -1294,7 +1294,7 @@ vi_word_motion(char *command, int eat) input_forward(); } -void +static void vi_End_motion(char *command) { input_forward(); @@ -1304,7 +1304,7 @@ vi_End_motion(char *command) input_forward(); } -void +static void vi_end_motion(char *command) { if (cursor >= len-1) @@ -1326,7 +1326,7 @@ vi_end_motion(char *command) } } -void +static void vi_Back_motion(char *command) { while (cursor > 0 && isspace(command[cursor-1])) @@ -1335,7 +1335,7 @@ vi_Back_motion(char *command) input_backward(1); } -void +static void vi_back_motion(char *command) { if (cursor <= 0) diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 8f9d75cc6..3a8e519fe 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -150,7 +150,7 @@ static inline void sem_down(int semid) } -void ipcsyslog_cleanup(void) +static void ipcsyslog_cleanup(void) { printf("Exiting Syslogd!\n"); if (shmid != -1) { @@ -165,7 +165,7 @@ void ipcsyslog_cleanup(void) } } -void ipcsyslog_init(void) +static void ipcsyslog_init(void) { if (buf == NULL) { if ((shmid = shmget(KEY_ID, shm_size, IPC_CREAT | 1023)) == -1) { @@ -195,7 +195,7 @@ void ipcsyslog_init(void) } /* write message to buffer */ -void circ_message(const char *msg) +static void circ_message(const char *msg) { int l = strlen(msg) + 1; /* count the whole message w/ '\0' included */ |