144:3446371e0bdb | 145:1396350141cf |
---|---|
31 | 31 |
32 | 32 |
33 | 33 |
34 static int getw1(char **); | 34 static int getw1(char **); |
35 #ifdef HAVE_WIRINGPI_H | 35 #ifdef HAVE_WIRINGPI_H |
36 static int getstr(char **); | |
37 static int getint(char **); | 36 static int getint(char **); |
38 static int getrcs(char **); | 37 static int getrcs(char **); |
39 #endif | 38 #endif |
40 //static int getbyt(char **); | |
41 //static int gethex(char **); | |
42 | 39 |
43 #define XSTR(x) #x | 40 #define XSTR(x) #x |
44 #define STR(x) XSTR(x) | 41 #define STR(x) XSTR(x) |
45 | 42 |
46 /* | 43 /* |
191 } | 188 } |
192 | 189 |
193 | 190 |
194 | 191 |
195 #ifdef HAVE_WIRINGPI_H | 192 #ifdef HAVE_WIRINGPI_H |
196 static int getstr(char **dest) | |
197 { | |
198 if (debug) | |
199 syslog(LOG_NOTICE, "rdconfig: getstr: %s(%d): %s %s", mypath, linecnt, MBSE_SS(k), MBSE_SS(v)); | |
200 | |
201 *dest = xstrcpy(v); | |
202 return 0; | |
203 } | |
204 | |
205 | |
206 | |
207 static int getint(char **dest) | 193 static int getint(char **dest) |
208 { | 194 { |
209 if (debug) | 195 if (debug) |
210 syslog(LOG_NOTICE, "rdconfig: getint: %s(%d): %s %s", mypath, linecnt, MBSE_SS(k), MBSE_SS(v)); | 196 syslog(LOG_NOTICE, "rdconfig: getint: %s(%d): %s %s", mypath, linecnt, MBSE_SS(k), MBSE_SS(v)); |
211 | 197 |