comparison lib/lib.c @ 535:d51be130fda2

More stabs at getting #includes right, and moving off of deprecated functions.
author Rob Landley <rob@landley.net>
date Thu, 08 Mar 2012 20:14:55 -0600
parents 3b9dea897dc0
children b2194045c40e
comparison
equal deleted inserted replaced
534:a864aa8c6331 535:d51be130fda2
388 { 388 {
389 struct string_list *rlist = NULL, **prlist=&rlist; 389 struct string_list *rlist = NULL, **prlist=&rlist;
390 char *cwd = xgetcwd(); 390 char *cwd = xgetcwd();
391 391
392 for (;;) { 392 for (;;) {
393 char *next = path ? index(path, ':') : NULL; 393 char *next = path ? strchr(path, ':') : NULL;
394 int len = next ? next-path : strlen(path); 394 int len = next ? next-path : strlen(path);
395 struct string_list *rnext; 395 struct string_list *rnext;
396 struct stat st; 396 struct stat st;
397 397
398 rnext = xmalloc(sizeof(void *) + strlen(filename) 398 rnext = xmalloc(sizeof(void *) + strlen(filename)