summaryrefslogtreecommitdiffstats
path: root/term-utils
diff options
context:
space:
mode:
authorSami Kerola2012-06-10 16:37:11 +0200
committerSami Kerola2012-06-11 19:51:35 +0200
commit0e9b73d3fb5e3c7a5146af65e119e297dcf75487 (patch)
tree8528c62980a043ea589484d8aa518aa91a96963f /term-utils
parentinclude: fix spurious list.h warnings (diff)
downloadkernel-qcow2-util-linux-0e9b73d3fb5e3c7a5146af65e119e297dcf75487.tar.gz
kernel-qcow2-util-linux-0e9b73d3fb5e3c7a5146af65e119e297dcf75487.tar.xz
kernel-qcow2-util-linux-0e9b73d3fb5e3c7a5146af65e119e297dcf75487.zip
build: fix redundant redeclaration warnings
env.c:24:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls] su.c:81:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls] fstab.c:581:14: warning: redundant redeclaration of 'strsignal' [-Wredundant-decls] kill.h:1:13: note: previous declaration of 'get_pids' was here kill.c:152:13: warning: redundant redeclaration of 'get_pids' [-Wredundant-decls] kill.c:142:5: warning: redundant redeclaration of 'main' [-Wredundant-decls] getopt.c:89:5: warning: redundant redeclaration of 'main' [-Wredundant-decls] agetty.c:536:15: warning: redundant redeclaration of 'optarg' [-Wredundant-decls] agetty.c:537:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] script.c:161:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] wall.c:96:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] libmount.h:362:26: note: previous declaration of 'mnt_update_get_fs' was here libmount.h:454:26: note: previous declaration of 'mnt_context_get_fs' was here mountP.h:383:26: warning: redundant redeclaration of 'mnt_context_get_fs' [-Wredundant-decls] mountP.h:398:26: warning: redundant redeclaration of 'mnt_update_get_fs' [-Wredundant-decls] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'term-utils')
-rw-r--r--term-utils/agetty.c2
-rw-r--r--term-utils/script.c1
-rw-r--r--term-utils/wall.c1
3 files changed, 0 insertions, 4 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c
index 9101e7fd3..862b8c49d 100644
--- a/term-utils/agetty.c
+++ b/term-utils/agetty.c
@@ -533,8 +533,6 @@ static void login_options_to_argv(char *argv[], int *argc,
/* Parse command-line arguments. */
static void parse_args(int argc, char **argv, struct options *op)
{
- extern char *optarg;
- extern int optind;
int c;
enum {
diff --git a/term-utils/script.c b/term-utils/script.c
index 07be7e987..05d9f8541 100644
--- a/term-utils/script.c
+++ b/term-utils/script.c
@@ -158,7 +158,6 @@ int
main(int argc, char **argv) {
sigset_t block_mask, unblock_mask;
struct sigaction sa;
- extern int optind;
int ch;
FILE *timingfd = stderr;
diff --git a/term-utils/wall.c b/term-utils/wall.c
index 3255a5166..996650638 100644
--- a/term-utils/wall.c
+++ b/term-utils/wall.c
@@ -93,7 +93,6 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
int
main(int argc, char **argv) {
- extern int optind;
int ch;
struct iovec iov;
struct utmp *utmpptr;