Lint that BSDI caught.

This commit is contained in:
rocky
2003-10-03 01:33:15 +00:00
parent a91317ae10
commit c05b68f5e2
2 changed files with 9 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
/* /*
$Id: cd-read.c,v 1.9 2003/10/02 02:59:58 rocky Exp $ $Id: cd-read.c,v 1.10 2003/10/03 01:33:30 rocky Exp $
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com> Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
@@ -411,13 +411,15 @@ main(int argc, const char *argv[])
case IMAGE_AUTO: case IMAGE_AUTO:
cdio = cdio_open (source_name, DRIVER_UNKNOWN); cdio = cdio_open (source_name, DRIVER_UNKNOWN);
if (cdio==NULL) { if (cdio==NULL) {
err_exit("Error in automatically selecting driver with input\n"); err_exit("Error in automatically selecting driver with input %s\n",
source_name);
} }
break; break;
case IMAGE_DEVICE: case IMAGE_DEVICE:
cdio = cdio_open (source_name, DRIVER_DEVICE); cdio = cdio_open (source_name, DRIVER_DEVICE);
if (cdio==NULL) { if (cdio==NULL) {
err_exit("Error in automatically selecting device with input\n"); err_exit("Error in automatically selecting device with input %s\n",
source_name);
} }
break; break;

View File

@@ -1,5 +1,5 @@
/* /*
$Id: testdefault.c,v 1.2 2003/10/02 02:59:58 rocky Exp $ $Id: testdefault.c,v 1.3 2003/10/03 01:33:15 rocky Exp $
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com> Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
@@ -56,7 +56,7 @@ static bool
is_in(char **file_list, const char *file) is_in(char **file_list, const char *file)
{ {
char **p; char **p;
for (p = file_list; p != NULL && *p != NULL; *p++) { for (p = file_list; p != NULL && *p != NULL; p++) {
if (strcmp(*p, file) == 0) { if (strcmp(*p, file) == 0) {
printf("File %s found as expected\n", file); printf("File %s found as expected\n", file);
return true; return true;
@@ -136,7 +136,7 @@ main(int argc, const char *argv[])
return 4; return 4;
} }
for( c = imgs; *c != NULL; *c++ ) { for( c = imgs; *c != NULL; c++ ) {
printf("%s\n", *c); printf("%s\n", *c);
} }
@@ -155,7 +155,7 @@ main(int argc, const char *argv[])
return 5; return 5;
} }
for( c = imgs; *c != NULL; *c++ ) { for( c = imgs; *c != NULL; c++ ) {
printf("image: %s\n", *c); printf("image: %s\n", *c);
} }