]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Rename ch to opt
authorRoy Marples <roy@marples.name>
Mon, 14 May 2007 13:34:36 +0000 (13:34 +0000)
committerRoy Marples <roy@marples.name>
Mon, 14 May 2007 13:34:36 +0000 (13:34 +0000)
dhcpcd.c

index 86f2ab7cdf8e1eed9b41cf1b8c9088702936292d..43768a887700dd9c1723618038cb87e670c70df8 100644 (file)
--- 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;