summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-03-30 14:23:55 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-03-30 16:48:31 -1000
commit5a0189827c1c6db21ecbfd01f00ee1f5edbb7a77 (patch)
treee66bf4021e999c37c81218401a3696a1e77349be /loader
parentb7bd1148c787ed047d46d3c091aae4cb4d210a86 (diff)
downloadanaconda-5a0189827c1c6db21ecbfd01f00ee1f5edbb7a77.tar.gz
anaconda-5a0189827c1c6db21ecbfd01f00ee1f5edbb7a77.tar.xz
anaconda-5a0189827c1c6db21ecbfd01f00ee1f5edbb7a77.zip
Work around gcc bug #492973
Problem with -O2 and some string functions with the latest version of gcc in rawhide. Work around the problem for now so we can compile, ideally we can revert this patch in the future. gcc bug: https://bugzilla.redhat.com/show_bug.cgi?id=492973
Diffstat (limited to 'loader')
-rw-r--r--loader/copy.c2
-rw-r--r--loader/dirbrowser.c4
-rw-r--r--loader/fwloader.c2
-rw-r--r--loader/getparts.c2
-rw-r--r--loader/loader.c2
-rw-r--r--loader/net.c2
-rw-r--r--loader/nfsinstall.c2
-rw-r--r--loader/undomounts.c4
-rw-r--r--loader/urls.c2
9 files changed, 11 insertions, 11 deletions
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;