diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-08-31 09:39:16 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-08-31 09:39:16 +0300 |
commit | f9de5ed43058c207e70c86cdd8fa34cbfeb545cd (patch) | |
tree | a9d244baa284986be834f0520ebbbe5a9a81841c | |
parent | a5de0df0cd48f2ad3d55657d1c79c9e88dafa965 (diff) | |
download | rpm-f9de5ed43058c207e70c86cdd8fa34cbfeb545cd.tar.gz rpm-f9de5ed43058c207e70c86cdd8fa34cbfeb545cd.tar.bz2 rpm-f9de5ed43058c207e70c86cdd8fa34cbfeb545cd.zip |
Switch rpmio mode checking to use rstreq()
-rw-r--r-- | rpmio/rpmio.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c index 95f0b8d8f..e729bc58c 100644 --- a/rpmio/rpmio.c +++ b/rpmio/rpmio.c @@ -1750,29 +1750,29 @@ fprintf(stderr, "*** Fdopen(%p,%s) %s\n", fd, fmode, fdbg(fd)); return fd; if (end && *end) { - if (!strcmp(end, "fdio")) { + if (rstreq(end, "fdio")) { iof = fdio; #if HAVE_ZLIB_H - } else if (!strcmp(end, "gzdio")) { + } else if (rstreq(end, "gzdio")) { iof = gzdio; fd = gzdFdopen(fd, zstdio); #endif #if HAVE_BZLIB_H - } else if (!strcmp(end, "bzdio")) { + } else if (rstreq(end, "bzdio")) { iof = bzdio; fd = bzdFdopen(fd, zstdio); #endif #if HAVE_LZMA_H - } else if (!strcmp(end, "xzdio")) { + } else if (rstreq(end, "xzdio")) { iof = xzdio; fd = xzdFdopen(fd, zstdio); - } else if (!strcmp(end, "lzdio")) { + } else if (rstreq(end, "lzdio")) { iof = lzdio; fd = lzdFdopen(fd, zstdio); #endif - } else if (!strcmp(end, "ufdio")) { + } else if (rstreq(end, "ufdio")) { iof = ufdio; - } else if (!strcmp(end, "fpio")) { + } else if (rstreq(end, "fpio")) { iof = fpio; if (noLibio) { int fdno = Fileno(fd); @@ -1841,7 +1841,7 @@ FD_t Fopen(const char *path, const char *fmode) if (stdio[0] == '\0') return NULL; - if (end == NULL || !strcmp(end, "fdio")) { + if (end == NULL || rstreq(end, "fdio")) { if (_rpmio_debug) fprintf(stderr, "*** Fopen fdio path %s fmode %s\n", path, fmode); fd = fdOpen(path, flags, perms); |