Browse Source

ANSI/ISO specifies that no library function sets errno to 0.

Manuel Novoa III 24 years ago
parent
commit
ca7088108b
1 changed files with 0 additions and 2 deletions
  1. 0 2
      libc/misc/dirent/readdir.c

+ 0 - 2
libc/misc/dirent/readdir.c

@@ -55,7 +55,5 @@ struct dirent *readdir(DIR * dir)
 	/* We have to save the next offset here. */
 	dir->dd_nextoff = de->d_off;
 
-	__set_errno(0);
-
 	return de;
 }