Skip to content

Commit

Permalink
Fix gcc warnings about possibly uninitialized variables in gpioctl.c.
Browse files Browse the repository at this point in the history
Noticed by:	bz
  • Loading branch information
DimitryAndric committed Mar 12, 2016
1 parent 250d9fd commit e74d991
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions usr.sbin/gpioctl/gpioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ __FBSDID("$FreeBSD$");

#include <libgpio.h>

#define PIN_TYPE_UNKNOWN 0
#define PIN_TYPE_NUMBER 1
#define PIN_TYPE_NAME 2

Expand Down Expand Up @@ -271,7 +270,7 @@ main(int argc, char **argv)

/* Find the pin number by the name */
switch (pin_type) {
case PIN_TYPE_UNKNOWN:
default:
/* First test if it is a pin number */
pinn = str2int(argv[0], &ok);
if (ok) {
Expand Down

0 comments on commit e74d991

Please sign in to comment.