mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +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 = ".";
|
char* name = ".";
|
||||||
unsigned char go = 0;
|
unsigned char go = 0;
|
||||||
register DIR *D;
|
DIR *D;
|
||||||
struct dirent* E;
|
register struct dirent* E;
|
||||||
|
|
||||||
D = opendir (name);
|
|
||||||
if (D == 0) {
|
|
||||||
printf("error opening %s: %s\n", name, strerror (errno));
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Explain usage and wait for a key */
|
/* Explain usage and wait for a key */
|
||||||
printf ("Use the following keys:\n"
|
printf ("Use the following keys:\n"
|
||||||
@ -86,7 +80,7 @@ done:
|
|||||||
if (errno == 0) {
|
if (errno == 0) {
|
||||||
printf ("Done\n");
|
printf ("Done\n");
|
||||||
} else {
|
} else {
|
||||||
printf("Done: %d (s)\n", errno, strerror (errno));
|
printf("Done: %d (%s)\n", errno, strerror (errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Close the directory */
|
/* Close the directory */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user