check_dhcp: Fix option parsing
commit466cb79e5224327c29fc6b84a1cec99c2b190c5a
authorHolger Weiss <holger@zedat.fu-berlin.de>
Fri, 2 Oct 2015 10:18:13 +0000 (2 12:18 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Fri, 2 Oct 2015 10:18:13 +0000 (2 12:18 +0200)
treebd90a0aa674018a56016010038e79ffb89b462d8
parent6a939fa1bacd90b64a8e09939ee06223330f7567
check_dhcp: Fix option parsing

The call_getopt() function didn't always return the correct number of
processed arguments.  However, since check_dhcp doesn't support
non-option arguments, the caller doesn't need this number anyway.

Closes #1345.
plugins-root/check_dhcp.c