summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lid.c2
-rw-r--r--src/mkid.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lid.c b/src/lid.c
index 517949a..a163686 100644
--- a/src/lid.c
+++ b/src/lid.c
@@ -604,7 +604,7 @@ get_editor_argv(char *fullstring, int* argc)
*argc = 1;
mark = fullstring;
- while (mark = strchr(mark, ' ')) {
+ while ((mark = strchr(mark, ' '))) {
(*argc)++;
mark += strspn(mark, " ");
}
diff --git a/src/mkid.c b/src/mkid.c
index 8a64530..a304216 100644
--- a/src/mkid.c
+++ b/src/mkid.c
@@ -22,7 +22,7 @@
#include <stdio.h>
#include <errno.h>
#include <getopt.h>
-#include <sys/stat.h>
+#include "lstat.h"
#include <stddef.h>
#include <unistd.h>
#include <pathmax.h>