Changeset 1797:b480812893b2 in roaraudio
- Timestamp:
- 05/21/09 04:24:47 (15 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
r1795 r1797 920 920 test_func_defmake ROAR_HAVE_SETENV setenv 'setenv("", "", 0)' -- stdlib.h 921 921 test_func_defmake ROAR_HAVE_PUTENV putenv 'putenv("")' -- stdlib.h 922 test_func_defmake ROAR_HAVE_STRTOK_R strtok_r 'strtok_r("","",(char**)0)' -- string.h 922 923 test_func_defmake ROAR_HAVE_NICE nice 'nice(0)' -- unistd.h 923 924 test_func_defmake ROAR_HAVE_GETGID getgid 'getgid()' -- sys/types.h unistd.h -
roarclients/roarmonhttp.c
r1785 r1797 232 232 #endif 233 233 234 #ifdef ROAR_HAVE_STRTOK_R 234 235 c = strtok_r(getenv("QUERY_STRING"), "&", &sp0); 236 #else 237 c = strtok(getenv("QUERY_STRING"), "&"); 238 #endif 235 239 236 240 while (c != NULL) { 241 #ifdef ROAR_HAVE_STRTOK_R 237 242 k = strtok_r(c, "=", &sp1); 238 243 v = strtok_r(NULL, "=", &sp1); 244 #else 245 k = c; 246 if ( (v = strstr(c, "=")) != NULL ) { 247 *v = 0; 248 v++; 249 } 250 #endif 239 251 240 252 if ( !strcmp(k, "codec") ) { … … 251 263 } 252 264 265 #ifdef ROAR_HAVE_STRTOK_R 253 266 c = strtok_r(NULL, "&", &sp0); 267 #else 268 c = strtok(NULL, "&"); 269 #endif 254 270 } 255 271
Note: See TracChangeset
for help on using the changeset viewer.