version 1.12 | | version 1.13 |
---|
| | |
/* | | /* |
* static char *rcsid_image_c = | | * static char *rcsid_image_c = |
* "$Id: image.c,v 1.12 2005/08/12 13:46:34 ryo_saeba Exp $"; | | * "$Id: image.c,v 1.13 2005/09/04 16:58:12 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
sprintf(buf,"%s/faces", settings.datadir); | | sprintf(buf,"%s/faces", settings.datadir); |
LOG(llevDebug,"Reading faces from %s...",buf); | | LOG(llevDebug,"Reading faces from %s...",buf); |
if ((fp=fopen(buf,"r"))==NULL) { | | if ((fp=fopen(buf,"r"))==NULL) { |
perror("Can't open faces file"); | | LOG(llevError, "Cannot open faces file %s: %s\n", buf, strerror_local(errno)); |
printf("buf = %s\n", buf); | | |
exit(-1); | | exit(-1); |
} | | } |
while (fgets(buf, MAX_BUF, fp)!=NULL) { | | while (fgets(buf, MAX_BUF, fp)!=NULL) { |
| | |
sprintf (buf,"%s/bmaps", settings.datadir); | | sprintf (buf,"%s/bmaps", settings.datadir); |
LOG(llevDebug,"Reading bmaps from %s...",buf); | | LOG(llevDebug,"Reading bmaps from %s...",buf); |
if ((fp=fopen(buf,"r"))==NULL) { | | if ((fp=fopen(buf,"r"))==NULL) { |
perror("Can't open bmaps file"); | | LOG(llevError, "Cannot open bmaps file %s: %s\n", buf, strerror_local(errno)); |
printf("buf = %s\n", buf); | | |
exit(-1); | | exit(-1); |
} | | } |
| | |
| | |
sprintf (buf,"%s/smooth", settings.datadir); | | sprintf (buf,"%s/smooth", settings.datadir); |
LOG(llevDebug,"Reading smooth from %s...",buf); | | LOG(llevDebug,"Reading smooth from %s...",buf); |
if ((fp=fopen(buf,"r"))==NULL) { | | if ((fp=fopen(buf,"r"))==NULL) { |
perror("Can't open smooth file"); | | LOG(llevError, "Cannot open smooth file %s: %s\n", strerror_local(errno)); |
printf("buf = %s\n", buf); | | |
exit(-1); | | exit(-1); |
} | | } |
| | |