wok-next view wiringpi/stuff/gpio-decodePin.patch @ rev 20358
Update libunwind, strace; pcmanfm-qt: update dependencies; shrink icu (less 2MB comparing to the *-full version); add awf.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Nov 22 21:52:02 2017 +0200 (2017-11-22) |
parents | |
children |
line source
1 --- gpio.c
2 +++ gpio.slitaz.c
3 @@ -74,26 +74,6 @@
4 " gpio gbr <channel>\n"
5 " gpio gbw <channel> <value>" ; // No trailing newline needed here.
7 -
8 -/*
9 - * decodePin:
10 - * Decode a pin "number" which can actually be a pin name to represent
11 - * one of the Pi's on-board pins.
12 - *********************************************************************************
13 - */
14 -
15 -static int decodePin (const char *str)
16 -{
17 -
18 -// The first case - see if it's a number:
19 -
20 - if (isdigit (str [0]))
21 - return atoi (str) ;
22 -
23 - return 0 ;
24 -}
25 -
26 -
27 /*
28 * changeOwner:
29 * Change the ownership of the file to the real userId of the calling