summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-03-15 17:50:58 +0100
committerJim Meyering <meyering@redhat.com>2008-03-16 19:04:29 +0100
commit12ff1eb9b91f795b9f3b930234e1702d9dfc3943 (patch)
treea7bd081fc4afe122a26cb8381e731e7e0fcbc8f5
parentc960211fe77c360e78172109365a776836dc5802 (diff)
downloadcoreutils-12ff1eb9b91f795b9f3b930234e1702d9dfc3943.tar.xz
Include <getopt.h> only if used.
* src/group-list.c: Don't include <getopt.h>. * src/printf.c: Likewise.
-rw-r--r--src/group-list.c1
-rw-r--r--src/printf.c3
2 files changed, 1 insertions, 3 deletions
diff --git a/src/group-list.c b/src/group-list.c
index ace4908b1..96438d9b8 100644
--- a/src/group-list.c
+++ b/src/group-list.c
@@ -21,7 +21,6 @@
#include <config.h>
#include <stdio.h>
#include <sys/types.h>
-#include <getopt.h>
#include <pwd.h>
#include <grp.h>
diff --git a/src/printf.c b/src/printf.c
index 483f3a98c..e2536c797 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -1,5 +1,5 @@
/* printf - format and print data
- Copyright (C) 1990-2007 Free Software Foundation, Inc.
+ Copyright (C) 1990-2008 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -48,7 +48,6 @@
#include <config.h>
#include <stdio.h>
#include <sys/types.h>
-#include <getopt.h>
#include "system.h"
#include "c-strtod.h"