summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-05-14 06:36:48 +0000
committerErik Andersen <andersen@codepoet.org>2000-05-14 06:36:48 +0000
commit557676bdf528741f188f6af0e7bb5f25e29e7d3e (patch)
tree69a82c960d2d17fa6da7cafa88a607a9f0aa9e83 /libc
parentc3a27f5095a50bef9e56f19eeed1176319e189e2 (diff)
Work in progress -- cleanups.
-Erik
Diffstat (limited to 'libc')
-rw-r--r--libc/string/config.c3
-rw-r--r--libc/termios/ttyname.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/libc/string/config.c b/libc/string/config.c
index 545207f6a..58716b922 100644
--- a/libc/string/config.c
+++ b/libc/string/config.c
@@ -46,7 +46,6 @@ cfgread(FILE *fp)
char *ebuf;
char *p;
int i;
- int j;
if (!fp) {
errno = EIO;
@@ -86,7 +85,7 @@ cfgfind(FILE *fp, char *var)
strncpy(search, var, sizeof(search));
fseek(fp, 0, SEEK_SET);
- while (ret = cfgread(fp)) {
+ while ((ret = cfgread(fp))) {
if (!strcmp(ret[0], search)) return ret;
}
return (void *)0;
diff --git a/libc/termios/ttyname.c b/libc/termios/ttyname.c
index 897243e71..9fc4f950c 100644
--- a/libc/termios/ttyname.c
+++ b/libc/termios/ttyname.c
@@ -1,5 +1,6 @@
-
#include <errno.h>
+#include <unistd.h>
+#include <string.h>
#include <sys/stat.h>
#include <dirent.h>