diff options
| author | Roy Marples <roy@marples.name> | 2007-05-14 13:34:36 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2007-05-14 13:34:36 +0000 |
| commit | d56e00adb094af15f62575c0e1fc62239c1ab289 (patch) | |
| tree | 22da41bb5ca0e5b0502742698915a5c1ba2ee5c5 /dhcpcd.c | |
| parent | cff1ccb615d01ab1c68fc7c78d520eb49f6a47ab (diff) | |
| download | dhcpcd-d56e00adb094af15f62575c0e1fc62239c1ab289.tar.xz | |
Rename ch to opt
Diffstat (limited to 'dhcpcd.c')
| -rw-r--r-- | dhcpcd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |
