mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
Fixed problems reported by Greg King.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5819 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
093e83835d
commit
640460deb5
@ -27,14 +27,8 @@ int main(void)
|
||||
{
|
||||
char* name = ".";
|
||||
unsigned char go = 0;
|
||||
register DIR *D;
|
||||
struct dirent* E;
|
||||
|
||||
D = opendir (name);
|
||||
if (D == 0) {
|
||||
printf("error opening %s: %s\n", name, strerror (errno));
|
||||
return 1;
|
||||
}
|
||||
DIR *D;
|
||||
register struct dirent* E;
|
||||
|
||||
/* Explain usage and wait for a key */
|
||||
printf ("Use the following keys:\n"
|
||||
@ -86,7 +80,7 @@ done:
|
||||
if (errno == 0) {
|
||||
printf ("Done\n");
|
||||
} else {
|
||||
printf("Done: %d (s)\n", errno, strerror (errno));
|
||||
printf("Done: %d (%s)\n", errno, strerror (errno));
|
||||
}
|
||||
|
||||
/* Close the directory */
|
||||
|
Loading…
Reference in New Issue
Block a user