From: Roy Marples Date: Mon, 14 May 2007 13:34:36 +0000 (+0000) Subject: Rename ch to opt X-Git-Tag: v3.2.3~254 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d56e00adb094af15f62575c0e1fc62239c1ab289;p=thirdparty%2Fdhcpcd.git Rename ch to opt --- 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;