wok-current diff wiringpi/stuff/gpio-decodePin.patch @ rev 21391
updated lxc and lxc-dev (1.0.0 -> 3.1.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 22 15:49:05 2019 +0100 (2019-04-22) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/wiringpi/stuff/gpio-decodePin.patch Mon Apr 22 15:49:05 2019 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +--- gpio.c 1.5 ++++ gpio.slitaz.c 1.6 +@@ -74,26 +74,6 @@ 1.7 + " gpio gbr <channel>\n" 1.8 + " gpio gbw <channel> <value>" ; // No trailing newline needed here. 1.9 + 1.10 +- 1.11 +-/* 1.12 +- * decodePin: 1.13 +- * Decode a pin "number" which can actually be a pin name to represent 1.14 +- * one of the Pi's on-board pins. 1.15 +- ********************************************************************************* 1.16 +- */ 1.17 +- 1.18 +-static int decodePin (const char *str) 1.19 +-{ 1.20 +- 1.21 +-// The first case - see if it's a number: 1.22 +- 1.23 +- if (isdigit (str [0])) 1.24 +- return atoi (str) ; 1.25 +- 1.26 +- return 0 ; 1.27 +-} 1.28 +- 1.29 +- 1.30 + /* 1.31 + * changeOwner: 1.32 + * Change the ownership of the file to the real userId of the calling