diff options
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/klogd.c | 19 | ||||
-rw-r--r-- | sysklogd/syslogd.c | 17 |
2 files changed, 5 insertions, 31 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index e4c8a630e..b8d69c445 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (C) 2001 by Gennady Feldman <gfeldman@gena01.com>. | 5 | * Copyright (C) 2001 by Gennady Feldman <gfeldman@gena01.com>. |
6 | * Changes: Made this a standalone busybox module which uses standalone | 6 | * Changes: Made this a standalone busybox module which uses standalone |
7 | * syslog() client interface. | 7 | * syslog() client interface. |
8 | * | 8 | * |
9 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | 9 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
10 | * | 10 | * |
@@ -14,20 +14,7 @@ | |||
14 | * | 14 | * |
15 | * Maintainer: Gennady Feldman <gfeldman@gena01.com> as of Mar 12, 2001 | 15 | * Maintainer: Gennady Feldman <gfeldman@gena01.com> as of Mar 12, 2001 |
16 | * | 16 | * |
17 | * This program is free software; you can redistribute it and/or modify | 17 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
18 | * it under the terms of the GNU General Public License as published by | ||
19 | * the Free Software Foundation; either version 2 of the License, or | ||
20 | * (at your option) any later version. | ||
21 | * | ||
22 | * This program is distributed in the hope that it will be useful, | ||
23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
25 | * General Public License for more details. | ||
26 | * | ||
27 | * You should have received a copy of the GNU General Public License | ||
28 | * along with this program; if not, write to the Free Software | ||
29 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
30 | * | ||
31 | */ | 18 | */ |
32 | 19 | ||
33 | #include <stdio.h> | 20 | #include <stdio.h> |
@@ -51,7 +38,7 @@ static void klogd_signal(int sig) | |||
51 | exit(EXIT_SUCCESS); | 38 | exit(EXIT_SUCCESS); |
52 | } | 39 | } |
53 | 40 | ||
54 | static void doKlogd(const int console_log_level) __attribute__ ((noreturn)); | 41 | static void doKlogd(const int console_log_level) ATTRIBUTE_NORETURN; |
55 | static void doKlogd(const int console_log_level) | 42 | static void doKlogd(const int console_log_level) |
56 | { | 43 | { |
57 | int priority = LOG_INFO; | 44 | int priority = LOG_INFO; |
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 3d94069e2..e6b7ee7ed 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -10,20 +10,7 @@ | |||
10 | * | 10 | * |
11 | * Maintainer: Gennady Feldman <gfeldman@gena01.com> as of Mar 12, 2001 | 11 | * Maintainer: Gennady Feldman <gfeldman@gena01.com> as of Mar 12, 2001 |
12 | * | 12 | * |
13 | * This program is free software; you can redistribute it and/or modify | 13 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
14 | * it under the terms of the GNU General Public License as published by | ||
15 | * the Free Software Foundation; either version 2 of the License, or | ||
16 | * (at your option) any later version. | ||
17 | * | ||
18 | * This program is distributed in the hope that it will be useful, | ||
19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
21 | * General Public License for more details. | ||
22 | * | ||
23 | * You should have received a copy of the GNU General Public License | ||
24 | * along with this program; if not, write to the Free Software | ||
25 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
26 | * | ||
27 | */ | 14 | */ |
28 | 15 | ||
29 | #include <stdio.h> | 16 | #include <stdio.h> |
@@ -527,7 +514,7 @@ static int serveConnection(char *tmpbuf, int n_read) | |||
527 | return n_read; | 514 | return n_read; |
528 | } | 515 | } |
529 | 516 | ||
530 | static void doSyslogd(void) __attribute__ ((noreturn)); | 517 | static void doSyslogd(void) ATTRIBUTE_NORETURN; |
531 | static void doSyslogd(void) | 518 | static void doSyslogd(void) |
532 | { | 519 | { |
533 | struct sockaddr_un sunx; | 520 | struct sockaddr_un sunx; |