diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-04-06 20:28:45 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-04-06 20:28:45 +0000 |
commit | 6278781655261a5011376b2fa2600996e32ca889 (patch) | |
tree | 11783e71b36c8c546c4dc02dff355b0f2478978b /libc/string | |
parent | a704ccaa5232184844cd67315951b39f85a6ba04 (diff) |
Fix include/errno.h to not use kernel header, and instead use bits/errno.h.
This required we use _LIBC instead of __LIBC__ to be consistent with glibc.
This had some sideffects in sys/syscalls.h. While fixing things, I made
everything use __set_errno() for (eventual) thread support.
-Erik
Diffstat (limited to 'libc/string')
-rw-r--r-- | libc/string/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/string/config.c b/libc/string/config.c index dad9a723e..3330ffd19 100644 --- a/libc/string/config.c +++ b/libc/string/config.c @@ -42,7 +42,7 @@ char **cfgread(FILE * fp) int i; if (!fp) { - errno = EIO; + __set_errno(EIO); return (void *) 0; } @@ -73,7 +73,7 @@ char **cfgfind(FILE * fp, char *var) char search[80]; if (!fp || !var) { - errno = EIO; + __set_errno(EIO); return (void *) 0; } |