summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
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>