Committer: Diego Biurrun <diego@xxxxxxxxxx> Date: 07/04/2010 at 17:00:07 Revision: 4152 Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: trunk Log: Remove redundant extern declarations for optarg, optind, optopt. This fixes: agent/agent.c:145: error: redundant redeclaration of `optarg' /usr/include/getopt.h:59: note: previous declaration of `optarg' was here agent/agent.c:146: error: redundant redeclaration of `optind' /usr/include/getopt.h:73: note: previous declaration of `optind' was here agent/agent.c:146: error: redundant redeclaration of `optopt' /usr/include/getopt.h:82: note: previous declaration of `optopt' was here Modified: M agent/agent.c === modified file 'agent/agent.c' --- agent/agent.c 2010-03-18 21:15:21 +0000 +++ agent/agent.c 2010-04-07 13:59:14 +0000 @@ -142,8 +142,6 @@ */ int main(int argc, char *argv[]) { - extern char *optarg; - extern int optind, optopt; int err = 0, fd = 0, c; HIP_IFEL((geteuid() != 0), -1, "agent must be started with sudo\n");