summaryrefslogtreecommitdiff
path: root/pico
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-06-08 17:19:07 -0600
committerEduardo Chappa <chappa@washington.edu>2020-06-08 17:19:07 -0600
commitd741ceda2bd53d15d48fc1b9c4d836a9016194a7 (patch)
tree65800837f16908a3ff6f6094311f74272e10af99 /pico
parenta340c0ecbfb80335b11bd5d5c50d130ba86b2812 (diff)
downloadalpine-d741ceda2bd53d15d48fc1b9c4d836a9016194a7.tar.xz
* Remove some compilation warnings given by clang7.
Diffstat (limited to 'pico')
-rw-r--r--pico/browse.c2
-rw-r--r--pico/line.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/pico/browse.c b/pico/browse.c
index b6d5c473..ca0f4657 100644
--- a/pico/browse.c
+++ b/pico/browse.c
@@ -1118,7 +1118,7 @@ FileBrowse(char *dir, size_t dirlen, char *fn, size_t fnlen,
if((status = fexist(child, "w", (off_t *)NULL)) == FIOSUC){
snprintf(tmp, sizeof(tmp), _("%s \"%.*s\" already exists!"),
- NLINE - 20, add_file > 0 ? "File" : "Directory", child);
+ add_file > 0 ? "File" : "Directory", NLINE - 20, child);
emlwrite(tmp, NULL);
break;
}
diff --git a/pico/line.c b/pico/line.c
index bb51963e..109f52d9 100644
--- a/pico/line.c
+++ b/pico/line.c
@@ -621,7 +621,7 @@ lisblank(LINE *line)
for(; n < llength(line); n++)
if(!ucs4_isspace(lgetc(line, n).c)
|| lgetc(line, n).c >= 0xff
- || (unsigned char) lgetc(line,n).c != NBSPC)
+ || (unsigned char) lgetc(line,n).c != (unsigned char) NBSPC)
return(FALSE);
return(TRUE);