summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-05-14 13:34:36 +0000
committerRoy Marples <roy@marples.name>2007-05-14 13:34:36 +0000
commitd56e00adb094af15f62575c0e1fc62239c1ab289 (patch)
tree22da41bb5ca0e5b0502742698915a5c1ba2ee5c5 /dhcpcd.c
parentcff1ccb615d01ab1c68fc7c78d520eb49f6a47ab (diff)
downloaddhcpcd-d56e00adb094af15f62575c0e1fc62239c1ab289.tar.xz
Rename ch to opt
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index 86f2ab7c..43768a88 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -90,7 +90,7 @@ int main(int argc, char **argv)
int doversion = 0;
int dohelp = 0;
int userclasses = 0;
- int ch;
+ int opt;
int option_index = 0;
char prefix[IF_NAMESIZE + 3];
pid_t pid;
@@ -147,10 +147,10 @@ int main(int argc, char **argv)
options.doinform = false;
options.timeout = DEFAULT_TIMEOUT;
- while ((ch = getopt_long(argc, argv, "ac:dh:i:kl:m:nps::t:u:EF::GHI::MNRSY", longopts,
- &option_index)) != -1)
+ while ((opt = getopt_long(argc, argv, "ac:dh:i:kl:m:nps::t:u:EF::GHI::MNRSY",
+ longopts, &option_index)) != -1)
{
- switch (ch) {
+ switch (opt) {
case 0:
if (longopts[option_index].flag)
break;