diff options
-rw-r--r-- | isys/eddsupport.c | 2 | ||||
-rw-r--r-- | loader/copy.c | 2 | ||||
-rw-r--r-- | loader/dirbrowser.c | 4 | ||||
-rw-r--r-- | loader/fwloader.c | 2 | ||||
-rw-r--r-- | loader/getparts.c | 2 | ||||
-rw-r--r-- | loader/loader.c | 2 | ||||
-rw-r--r-- | loader/net.c | 2 | ||||
-rw-r--r-- | loader/nfsinstall.c | 2 | ||||
-rw-r--r-- | loader/undomounts.c | 4 | ||||
-rw-r--r-- | loader/urls.c | 2 |
10 files changed, 12 insertions, 12 deletions
diff --git a/isys/eddsupport.c b/isys/eddsupport.c index ae974c565..242021a2e 100644 --- a/isys/eddsupport.c +++ b/isys/eddsupport.c @@ -168,7 +168,7 @@ static int mapBiosDisks(struct device** devices,const char *path) { } while ((entry = readdir(dirHandle)) != NULL) { - if(!strncmp(entry->d_name,".",1) || !strncmp(entry->d_name,"..",2)) { + if(!(strncmp)(entry->d_name,".",1) || !(strncmp)(entry->d_name,"..",2)) { continue; } ret = sscanf((entry->d_name+9), "%x", &biosNum); diff --git a/loader/copy.c b/loader/copy.c index 1c612337c..3a7a0c73b 100644 --- a/loader/copy.c +++ b/loader/copy.c @@ -63,7 +63,7 @@ int copyDirectory(char * from, char * to, void (*warnFn)(char *), errno = 0; while ((ent = readdir(dir))) { - if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) + if (!(strcmp)(ent->d_name, ".") || !(strcmp)(ent->d_name, "..")) continue; sprintf(filespec, "%s/%s", from, ent->d_name); diff --git a/loader/dirbrowser.c b/loader/dirbrowser.c index 6c713ec03..eb10c5d6f 100644 --- a/loader/dirbrowser.c +++ b/loader/dirbrowser.c @@ -83,9 +83,9 @@ static char ** get_file_list(char * dirname, files = malloc(numfiles * sizeof(char *)); while ((entry = readdir(dir))) { - if ((strlen(entry->d_name) == 1) && !strncmp(entry->d_name, ".", 1)) + if ((strlen(entry->d_name) == 1) && !(strncmp)(entry->d_name, ".", 1)) continue; - if ((strlen(entry->d_name) == 2) && !strncmp(entry->d_name, "..", 2)) + if ((strlen(entry->d_name) == 2) && !(strncmp)(entry->d_name, "..", 2)) continue; if (filterfunc && filterfunc(dirname, entry)) continue; diff --git a/loader/fwloader.c b/loader/fwloader.c index 2ab8c7fb4..f4fac38e0 100644 --- a/loader/fwloader.c +++ b/loader/fwloader.c @@ -209,7 +209,7 @@ static int get_netlink_msg(struct fw_loader *fwl, struct uevent *uevent) size = sizeof (buffer) - 1; buffer[size] = '\0'; - len = strcspn(buffer, "@"); + len = (strcspn)(buffer, "@"); if (!buffer[len]) return -1; diff --git a/loader/getparts.c b/loader/getparts.c index 8d2b7c4c6..69072291e 100644 --- a/loader/getparts.c +++ b/loader/getparts.c @@ -94,7 +94,7 @@ char **getPartitionsList(char * disk) { break; } else if (toknum == 2) { /* if size is exactly 1 then ignore it as an extended */ - if (!strcmp(b, "1")) + if (!(strcmp)(b, "1")) break; } else if (toknum == 3) { /* this should be the partition name */ diff --git a/loader/loader.c b/loader/loader.c index 98ea24cba..019b2d70d 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -2082,7 +2082,7 @@ int main(int argc, char ** argv) { path = getenv("PATH"); while (path && path[0]) { - int n = strcspn(path, ":"); + int n = (strcspn)(path, ":"); char c, *binpath; c = path[n]; diff --git a/loader/net.c b/loader/net.c index 3a3fae9d1..3da4f1e36 100644 --- a/loader/net.c +++ b/loader/net.c @@ -86,7 +86,7 @@ static void cidrCallback(newtComponent co, void * dptr) { abort(); } - if (strcmp(data->ipv4, "")) + if ((strcmp)(data->ipv4, "")) upper = 32; #ifdef ENABLE_IPV6 } else if (co == data->cidr6Entry) { diff --git a/loader/nfsinstall.c b/loader/nfsinstall.c index 1a8154777..d15e7a646 100644 --- a/loader/nfsinstall.c +++ b/loader/nfsinstall.c @@ -89,7 +89,7 @@ static int nfsGetSetup(char ** hostptr, char ** dirptr) { do { rc = newtWinEntries(_("NFS Setup"), buf, 60, 5, 15, 24, entries, _("OK"), _("Back"), NULL); - } while (!strcmp(newServer, "") || !strcmp(newDir, "")); + } while (!(strcmp)(newServer, "") || !(strcmp)(newDir, "")); free(buf); free(entries[1].text); diff --git a/loader/undomounts.c b/loader/undomounts.c index 1884ce6af..68b172370 100644 --- a/loader/undomounts.c +++ b/loader/undomounts.c @@ -156,8 +156,8 @@ void unmountFilesystems(void) { while (*chptr != ' ') chptr++; *chptr++ = '\0'; - if (strcmp(start, "/") && strcmp(start, "/tmp") && - strcmp(start, "/dev")) { + if ((strcmp)(start, "/") && (strcmp)(start, "/tmp") && + (strcmp)(start, "/dev")) { filesystems[numFilesystems].name = strdup(start); filesystems[numFilesystems].what = FS; filesystems[numFilesystems].mounted = 1; diff --git a/loader/urls.c b/loader/urls.c index a46e0342a..9158fa8b8 100644 --- a/loader/urls.c +++ b/loader/urls.c @@ -136,7 +136,7 @@ static char * getLoginName(char * login, struct iurlinfo *ui) { char *convertUIToURL(struct iurlinfo *ui) { char *login, *finalPrefix, *url, *p; - if (!strcmp(ui->prefix, "/")) + if (!(strcmp)(ui->prefix, "/")) finalPrefix = "/."; else finalPrefix = ui->prefix; |