diff options
author | jbj <devnull@localhost> | 2005-01-23 20:44:57 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2005-01-23 20:44:57 +0000 |
commit | 9e1bfe0af5fd0183f882f60ebbb670f867682425 (patch) | |
tree | 4c9b6be8c414b95b076e2e26ac2f300f025ffea3 | |
parent | 15d076fc8ff97ea14a78d78bf4ddab8939bf6a50 (diff) | |
download | librpm-tizen-9e1bfe0af5fd0183f882f60ebbb670f867682425.tar.gz librpm-tizen-9e1bfe0af5fd0183f882f60ebbb670f867682425.tar.bz2 librpm-tizen-9e1bfe0af5fd0183f882f60ebbb670f867682425.zip |
- blueprint rpm-4_4 and HEAD to minimize diff spew.
CVS patchset: 7706
CVS date: 2005/01/23 20:44:57
-rw-r--r-- | CHANGES | 2 | ||||
-rwxr-xr-x | autogen.sh | 3 | ||||
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | file/src/.splintrc | 6 | ||||
-rw-r--r-- | file/src/Makefile.am | 2 | ||||
-rw-r--r-- | file/src/apprentice.c | 38 | ||||
-rw-r--r-- | file/src/ascmagic.c | 2 | ||||
-rw-r--r-- | file/src/compress.c | 18 | ||||
-rw-r--r-- | file/src/file.c | 46 | ||||
-rw-r--r-- | file/src/readelf.c | 16 | ||||
-rw-r--r-- | file/src/softmagic.c | 240 | ||||
-rw-r--r-- | lib/rpmsx.c | 3 | ||||
-rw-r--r-- | misc/Makefile.am | 2 | ||||
-rw-r--r-- | po/cs.po | 12 | ||||
-rw-r--r-- | po/da.po | 12 | ||||
-rw-r--r-- | po/de.po | 12 | ||||
-rw-r--r-- | po/fi.po | 12 | ||||
-rw-r--r-- | po/fr.po | 12 | ||||
-rw-r--r-- | po/gl.po | 12 | ||||
-rw-r--r-- | po/is.po | 12 | ||||
-rw-r--r-- | po/ja.po | 12 | ||||
-rw-r--r-- | po/ko.po | 12 | ||||
-rw-r--r-- | po/no.po | 12 | ||||
-rw-r--r-- | po/pl.po | 12 | ||||
-rw-r--r-- | po/pt.po | 12 | ||||
-rw-r--r-- | po/pt_BR.po | 12 | ||||
-rw-r--r-- | po/ro.po | 12 | ||||
-rw-r--r-- | po/rpm.pot | 12 | ||||
-rw-r--r-- | po/ru.po | 12 | ||||
-rw-r--r-- | po/sk.po | 12 | ||||
-rw-r--r-- | po/sl.po | 14 | ||||
-rw-r--r-- | po/sr.po | 12 | ||||
-rw-r--r-- | po/sv.po | 12 | ||||
-rw-r--r-- | po/tr.po | 12 | ||||
-rw-r--r-- | python/Makefile.am | 4 | ||||
-rw-r--r-- | python/rpmts-py.c | 2 | ||||
-rw-r--r-- | rpmdb/legacy.c | 2 | ||||
-rw-r--r-- | rpmdb/rpmdb.c | 4 | ||||
-rw-r--r-- | rpmio/rpmio.c | 4 | ||||
-rw-r--r-- | rpmio/rpmpgp.c | 2 |
40 files changed, 328 insertions, 325 deletions
@@ -9,7 +9,9 @@ - mac os x patches (#131943,#131944,#132924,#132926). - mac os x patches (#133611, #133612, #134637). - build against external/internal neon. + - add https://svn.uhulinux.hu/packages/dev/zlib/patches/02-rsync.patch - changes to build on Mac OS X using darwinports neon/beecrypt. + - blueprint rpm-4_4 and HEAD to minimize diff spew. 4.3.3 -> 4.4: - pentium3/pentium4 arch support (pluto@PLD). diff --git a/autogen.sh b/autogen.sh index c5061adea..518c9f6d3 100755 --- a/autogen.sh +++ b/autogen.sh @@ -50,6 +50,9 @@ fi if [ -d file ]; then (echo "--- file"; cd file; ./autogen.sh --noconfigure "$@") fi +if [ -d neon ]; then + (echo "--- neon"; cd neon; ./autogen.sh "$@") +fi echo "--- rpm" $libtoolize --copy --force diff --git a/configure.ac b/configure.ac index 20105c205..b69356a99 100644 --- a/configure.ac +++ b/configure.ac @@ -454,6 +454,9 @@ AC_CHECK_HEADER([neon/ne_session.h], [ AC_CHECK_LIB(neon, ne_get_response_header, [ AC_DEFINE(HAVE_NEON_NE_GET_RESPONSE_HEADER, 1, [Define to 1 if you have ne_get_response_header() in libneon.]) ]) + AC_CHECK_LIB(neon, ne_send_request_chunk, [ + AC_DEFINE(HAVE_NEON_NE_SEND_REQUEST_CHUNK, 1, [Define to 1 if you have ne_send_request_chunk() in libneon.]) + ]) WITH_NEON_INCLUDE="-I${includedir}/neon" WITH_NEON_LIB="-lneon" ]) diff --git a/file/src/.splintrc b/file/src/.splintrc index 9f1cae6e8..fbbb555cb 100644 --- a/file/src/.splintrc +++ b/file/src/.splintrc @@ -20,7 +20,6 @@ -compmempass -compdestroy -evalorder --exitarg -formatconst -macroredef -modobserver # 9 @@ -42,11 +41,6 @@ -temptrans --looploopbreak --loopswitchbreak --looploopcontinue --switchloopbreak --switchswitchbreak -whileempty -constuse diff --git a/file/src/Makefile.am b/file/src/Makefile.am index f1ac1af5e..076ffc31a 100644 --- a/file/src/Makefile.am +++ b/file/src/Makefile.am @@ -4,7 +4,7 @@ BUILT_SOURCES = listobjs EXTRA_DIST = test.c pkglibdir = @prefix@/lib/rpm -#MAGIC = $(pkglibdir)/magic +MAGIC = $(pkglibdir)/magic AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"' diff --git a/file/src/apprentice.c b/file/src/apprentice.c index 31d94abc5..b1ad3fee1 100644 --- a/file/src/apprentice.c +++ b/file/src/apprentice.c @@ -667,14 +667,14 @@ parse(struct magic_set *ms, struct magic **magicp, uint32_t *nmagicp, char *l, switch (*l) { case CHAR_IGNORE_LOWERCASE: m->mask |= STRING_IGNORE_LOWERCASE; - break; + /*@switchbreak@*/ break; case CHAR_COMPACT_BLANK: m->mask |= STRING_COMPACT_BLANK; - break; + /*@switchbreak@*/ break; case CHAR_COMPACT_OPTIONAL_BLANK: m->mask |= STRING_COMPACT_OPTIONAL_BLANK; - break; + /*@switchbreak@*/ break; default: if (ms->flags & MAGIC_CHECK) file_magwarn(ms, @@ -881,31 +881,31 @@ getstr(struct magic_set *ms, char *s, char *p, int plen, int *slen) default: *p++ = (char) c; - break; + /*@switchbreak@*/ break; case 'n': *p++ = '\n'; - break; + /*@switchbreak@*/ break; case 'r': *p++ = '\r'; - break; + /*@switchbreak@*/ break; case 'b': *p++ = '\b'; - break; + /*@switchbreak@*/ break; case 't': *p++ = '\t'; - break; + /*@switchbreak@*/ break; case 'f': *p++ = '\f'; - break; + /*@switchbreak@*/ break; case 'v': *p++ = '\v'; - break; + /*@switchbreak@*/ break; /* \ and up to 3 octal digits */ case '0': @@ -929,7 +929,7 @@ getstr(struct magic_set *ms, char *s, char *p, int plen, int *slen) else --s; *p++ = (char)val; - break; + /*@switchbreak@*/ break; /* \x and up to 2 hex digits */ case 'x': @@ -945,7 +945,7 @@ getstr(struct magic_set *ms, char *s, char *p, int plen, int *slen) } else --s; *p++ = (char)val; - break; + /*@switchbreak@*/ break; } } else *p++ = (char)c; @@ -999,31 +999,31 @@ file_showstr(FILE *fp, const char *s, size_t len) case '\n': (void) fputc('n', fp); - break; + /*@switchbreak@*/ break; case '\r': (void) fputc('r', fp); - break; + /*@switchbreak@*/ break; case '\b': (void) fputc('b', fp); - break; + /*@switchbreak@*/ break; case '\t': (void) fputc('t', fp); - break; + /*@switchbreak@*/ break; case '\f': (void) fputc('f', fp); - break; + /*@switchbreak@*/ break; case '\v': (void) fputc('v', fp); - break; + /*@switchbreak@*/ break; default: (void) fprintf(fp, "%.3o", c & 0377); - break; + /*@switchbreak@*/ break; } } } diff --git a/file/src/ascmagic.c b/file/src/ascmagic.c index e1d5bc36b..ad48965b1 100644 --- a/file/src/ascmagic.c +++ b/file/src/ascmagic.c @@ -208,7 +208,7 @@ file_ascmagic(struct magic_set *ms, const unsigned char *buf, size_t nbytes) */ for (end = i + 1; end < nbytes; end++) if (ISSPC(ubuf[end])) - break; + /*@innerbreak@*/ break; /* * compare the word thus isolated against the token list diff --git a/file/src/compress.c b/file/src/compress.c index 06e8ae7ef..51437ce73 100644 --- a/file/src/compress.c +++ b/file/src/compress.c @@ -149,7 +149,7 @@ swrite(int fd, const void *buf, size_t n) default: n -= rv; buf = ((const char *)buf) + rv; - break; + /*@switchbreak@*/ break; } while (n > 0); return rn; @@ -176,7 +176,7 @@ sread(int fd, void *buf, size_t n) default: n -= rv; buf = ((char *)buf) + rv; - break; + /*@switchbreak@*/ break; } while (n > 0); return rn; @@ -354,7 +354,7 @@ uncompressbuf(struct magic_set *ms, size_t method, const unsigned char *old, execvp(compr[method].argv[0], (char *const *)compr[method].argv); - exit(1); + exit(EXIT_FAILURE); /*@notreached@*/ break; case -1: file_error(ms, errno, "could not fork"); @@ -368,16 +368,16 @@ uncompressbuf(struct magic_set *ms, size_t method, const unsigned char *old, case 0: /* child */ (void)close(fdout[0]); if (swrite(fdin[1], old, n) != n) - exit(1); - exit(0); - /*@notreached@*/ break; + exit(EXIT_FAILURE); + exit(EXIT_SUCCESS); + /*@notreached@*/ /*@innerbreak@*/ break; case -1: - exit(1); - /*@notreached@*/ break; + exit(EXIT_FAILURE); + /*@notreached@*/ /*@innerbreak@*/ break; default: /* parent */ - break; + /*@innerbreak@*/ break; } (void) close(fdin[1]); fdin[1] = -1; diff --git a/file/src/file.c b/file/src/file.c index 425b82bea..fb47ef387 100644 --- a/file/src/file.c +++ b/file/src/file.c @@ -226,56 +226,56 @@ main(int argc, char *argv[]) case 0 : if (longindex == 1) help(); - break; + /*@switchbreak@*/ break; #endif case 'b': ++bflag; - break; + /*@switchbreak@*/ break; case 'c': action = FILE_CHECK; - break; + /*@switchbreak@*/ break; case 'C': action = FILE_COMPILE; - break; + /*@switchbreak@*/ break; case 'd': flags |= MAGIC_DEBUG|MAGIC_CHECK; - break; + /*@switchbreak@*/ break; case 'f': if(action) usage(); load(magicfile, flags); unwrap(optarg); ++didsomefiles; - break; + /*@switchbreak@*/ break; case 'F': separator = optarg; - break; + /*@switchbreak@*/ break; case 'i': flags |= MAGIC_MIME; - break; + /*@switchbreak@*/ break; case 'k': flags |= MAGIC_CONTINUE; - break; + /*@switchbreak@*/ break; case 'm': magicfile = optarg; - break; + /*@switchbreak@*/ break; case 'n': ++nobuffer; - break; + /*@switchbreak@*/ break; case 'N': ++nopad; - break; + /*@switchbreak@*/ break; #if defined(HAVE_UTIME) || defined(HAVE_UTIMES) case 'p': flags |= MAGIC_PRESERVE_ATIME; - break; + /*@switchbreak@*/ break; #endif case 'r': flags |= MAGIC_RAW; - break; + /*@switchbreak@*/ break; case 's': flags |= MAGIC_DEVICES; - break; + /*@switchbreak@*/ break; case 'v': (void) fprintf(stdout, "%s-%d.%.2d\n", progname, FILE_VERSION_MAJOR, patchlevel); @@ -284,16 +284,16 @@ main(int argc, char *argv[]) return 1; case 'z': flags |= MAGIC_COMPRESS; - break; + /*@switchbreak@*/ break; #ifdef S_IFLNK case 'L': flags |= MAGIC_SYMLINK; - break; + /*@switchbreak@*/ break; #endif case '?': default: errflg++; - break; + /*@switchbreak@*/ break; } if (errflg) { @@ -352,12 +352,12 @@ load(/*@unused@*/ const char *m, int flags) magic = magic_open(flags); if (magic == NULL) { (void)fprintf(stderr, "%s: %s\n", progname, strerror(errno)); - exit(1); + exit(EXIT_FAILURE); } if (magic_load(magic, magicfile) == -1) { (void)fprintf(stderr, "%s: %s\n", progname, magic_error(magic)); - exit(1); + exit(EXIT_FAILURE); } } @@ -378,7 +378,7 @@ unwrap(char *fn) if ((f = fopen(fn, "r")) == NULL) { (void)fprintf(stderr, "%s: Cannot open `%s' (%s).\n", progname, fn, strerror(errno)); - exit(1); + exit(EXIT_FAILURE); } while (fgets(buf, MAXPATHLEN, f) != NULL) { @@ -517,7 +517,7 @@ usage(void) #ifdef HAVE_GETOPT_LONG (void)fputs("Try `file --help' for more information.\n", stderr); #endif - exit(1); + exit(EXIT_FAILURE); } #ifdef HAVE_GETOPT_LONG @@ -549,6 +549,6 @@ help(void) " --help display this help and exit\n" " --version output version information and exit\n" ); - exit(0); + exit(EXIT_SUCCESS); } #endif diff --git a/file/src/readelf.c b/file/src/readelf.c index cd20bedc6..527263172 100644 --- a/file/src/readelf.c +++ b/file/src/readelf.c @@ -273,11 +273,11 @@ dophn_core(struct magic_set *ms, int class, int swap, int fd, off_t off, offset = 0; for (;;) { if (offset >= (size_t)bufsize) - break; + /*@innerbreak@*/ break; offset = donote(ms, nbuf, offset, (size_t)bufsize, class, swap, 4); if (offset == 0) - break; + /*@innerbreak@*/ break; } } @@ -595,7 +595,7 @@ donote(struct magic_set *ms, unsigned char *nbuf, size_t offset, size_t size, if (j == 0) goto tryanother; else - break; + /*@innerbreak@*/ break; } else { /* * A nonprintable @@ -700,10 +700,10 @@ dophn_exec(struct magic_set *ms, int class, int swap, int fd, off_t off, switch (ph_type) { case PT_DYNAMIC: linking_style = "dynamically"; - break; + /*@switchbreak@*/ break; case PT_INTERP: shared_libraries = " (uses shared libs)"; - break; + /*@switchbreak@*/ break; case PT_NOTE: if ((align = ph_align) & 0x80000000) { if (file_printf(ms, @@ -730,17 +730,17 @@ dophn_exec(struct magic_set *ms, int class, int swap, int fd, off_t off, offset = 0; for (;;) { if (offset >= (size_t)bufsize) - break; + /*@innerbreak@*/ break; offset = donote(ms, nbuf, offset, (size_t)bufsize, class, swap, align); if (offset == 0) - break; + /*@innerbreak@*/ break; } if (lseek(fd, savedoffset, SEEK_SET) == (off_t)-1) { file_badseek(ms); return -1; } - break; + /*@switchbreak@*/ break; } } if (file_printf(ms, ", %s linked%s", linking_style, shared_libraries) diff --git a/file/src/softmagic.c b/file/src/softmagic.c index 82bc72930..707b1c526 100644 --- a/file/src/softmagic.c +++ b/file/src/softmagic.c @@ -134,9 +134,9 @@ match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, return -1; case 0: flush++; - break; + /*@switchbreak@*/ break; default: - break; + /*@switchbreak@*/ break; } if (flush) { /* @@ -171,7 +171,7 @@ match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, while (magic[magindex+1].cont_level != 0 && ++magindex < nmagic) { if (cont_level < magic[magindex].cont_level) - continue; + /*@innercontinue@*/ continue; if (cont_level > magic[magindex].cont_level) { /* * We're at the end of the level @@ -190,7 +190,7 @@ match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, case -1: return -1; case 0: - break; + /*@switchbreak@*/ break; default: /* * This continuation matched. @@ -347,28 +347,28 @@ mconvert(struct magic_set *ms, union VALUETYPE *p, struct magic *m) switch (m->mask_op&0x7F) { case FILE_OPAND: p->b &= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPOR: p->b |= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPXOR: p->b ^= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPADD: p->b += m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMINUS: p->b -= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMULTIPLY: p->b *= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPDIVIDE: p->b /= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMODULO: p->b %= m->mask; - break; + /*@innerbreak@*/ break; } if (m->mask_op & FILE_OPINVERSE) p->b = ~p->b; @@ -378,28 +378,28 @@ mconvert(struct magic_set *ms, union VALUETYPE *p, struct magic *m) switch (m->mask_op&0x7F) { case FILE_OPAND: p->h &= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPOR: p->h |= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPXOR: p->h ^= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPADD: p->h += m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMINUS: p->h -= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMULTIPLY: p->h *= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPDIVIDE: p->h /= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMODULO: p->h %= m->mask; - break; + /*@innerbreak@*/ break; } if (m->mask_op & FILE_OPINVERSE) p->h = ~p->h; @@ -411,28 +411,28 @@ mconvert(struct magic_set *ms, union VALUETYPE *p, struct magic *m) switch (m->mask_op&0x7F) { case FILE_OPAND: p->l &= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPOR: p->l |= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPXOR: p->l ^= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPADD: p->l += m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMINUS: p->l -= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMULTIPLY: p->l *= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPDIVIDE: p->l /= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMODULO: p->l %= m->mask; - break; + /*@innerbreak@*/ break; } if (m->mask_op & FILE_OPINVERSE) p->l = ~p->l; @@ -470,28 +470,28 @@ mconvert(struct magic_set *ms, union VALUETYPE *p, struct magic *m) switch (m->mask_op&0x7F) { case FILE_OPAND: p->h &= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPOR: p->h |= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPXOR: p->h ^= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPADD: p->h += m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMINUS: p->h -= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMULTIPLY: p->h *= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPDIVIDE: p->h /= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMODULO: p->h %= m->mask; - break; + /*@innerbreak@*/ break; } if (m->mask_op & FILE_OPINVERSE) p->h = ~p->h; @@ -505,28 +505,28 @@ mconvert(struct magic_set *ms, union VALUETYPE *p, struct magic *m) switch (m->mask_op&0x7F) { case FILE_OPAND: p->l &= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPOR: p->l |= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPXOR: p->l ^= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPADD: p->l += m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMINUS: p->l -= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMULTIPLY: p->l *= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPDIVIDE: p->l /= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMODULO: p->l %= m->mask; - break; + /*@innerbreak@*/ break; } if (m->mask_op & FILE_OPINVERSE) p->l = ~p->l; @@ -537,28 +537,28 @@ mconvert(struct magic_set *ms, union VALUETYPE *p, struct magic *m) switch (m->mask_op&0x7F) { case FILE_OPAND: p->h &= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPOR: p->h |= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPXOR: p->h ^= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPADD: p->h += m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMINUS: p->h -= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMULTIPLY: p->h *= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPDIVIDE: p->h /= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMODULO: p->h %= m->mask; - break; + /*@innerbreak@*/ break; } if (m->mask_op & FILE_OPINVERSE) p->h = ~p->h; @@ -572,28 +572,28 @@ mconvert(struct magic_set *ms, union VALUETYPE *p, struct magic *m) switch (m->mask_op&0x7F) { case FILE_OPAND: p->l &= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPOR: p->l |= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPXOR: p->l ^= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPADD: p->l += m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMINUS: p->l -= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMULTIPLY: p->l *= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPDIVIDE: p->l /= m->mask; - break; + /*@innerbreak@*/ break; case FILE_OPMODULO: p->l %= m->mask; - break; + /*@innerbreak@*/ break; } if (m->mask_op & FILE_OPINVERSE) p->l = ~p->l; @@ -735,28 +735,28 @@ mget(struct magic_set *ms, union VALUETYPE *p, const unsigned char *s, switch (m->in_op&0x7F) { case FILE_OPAND: offset = p->b & m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPOR: offset = p->b | m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPXOR: offset = p->b ^ m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPADD: offset = p->b + m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMINUS: offset = p->b - m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMULTIPLY: offset = p->b * m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPDIVIDE: offset = p->b / m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMODULO: offset = p->b % m->in_offset; - break; + /*@innerbreak@*/ break; } } else offset = p->b; @@ -770,42 +770,42 @@ mget(struct magic_set *ms, union VALUETYPE *p, const unsigned char *s, offset = (short)((p->hs[0]<<8)| (p->hs[1])) & m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPOR: offset = (short)((p->hs[0]<<8)| (p->hs[1])) | m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPXOR: offset = (short)((p->hs[0]<<8)| (p->hs[1])) ^ m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPADD: offset = (short)((p->hs[0]<<8)| (p->hs[1])) + m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMINUS: offset = (short)((p->hs[0]<<8)| (p->hs[1])) - m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMULTIPLY: offset = (short)((p->hs[0]<<8)| (p->hs[1])) * m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPDIVIDE: offset = (short)((p->hs[0]<<8)| (p->hs[1])) / m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMODULO: offset = (short)((p->hs[0]<<8)| (p->hs[1])) % m->in_offset; - break; + /*@innerbreak@*/ break; } } else offset = (short)((p->hs[0]<<8)| @@ -820,42 +820,42 @@ mget(struct magic_set *ms, union VALUETYPE *p, const unsigned char *s, offset = (short)((p->hs[1]<<8)| (p->hs[0])) & m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPOR: offset = (short)((p->hs[1]<<8)| (p->hs[0])) | m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPXOR: offset = (short)((p->hs[1]<<8)| (p->hs[0])) ^ m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPADD: offset = (short)((p->hs[1]<<8)| (p->hs[0])) + m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMINUS: offset = (short)((p->hs[1]<<8)| (p->hs[0])) - m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMULTIPLY: offset = (short)((p->hs[1]<<8)| (p->hs[0])) * m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPDIVIDE: offset = (short)((p->hs[1]<<8)| (p->hs[0])) / m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMODULO: offset = (short)((p->hs[1]<<8)| (p->hs[0])) % m->in_offset; - break; + /*@innerbreak@*/ break; } } else offset = (short)((p->hs[1]<<8)| @@ -868,28 +868,28 @@ mget(struct magic_set *ms, union VALUETYPE *p, const unsigned char *s, switch (m->in_op & 0x7F) { case FILE_OPAND: offset = p->h & m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPOR: offset = p->h | m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPXOR: offset = p->h ^ m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPADD: offset = p->h + m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMINUS: offset = p->h - m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMULTIPLY: offset = p->h * m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPDIVIDE: offset = p->h / m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMODULO: offset = p->h % m->in_offset; - break; + /*@innerbreak@*/ break; } } else @@ -906,56 +906,56 @@ mget(struct magic_set *ms, union VALUETYPE *p, const unsigned char *s, (p->hl[2]<<8)| (p->hl[3])) & m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPOR: offset = (int32_t)((p->hl[0]<<24)| (p->hl[1]<<16)| (p->hl[2]<<8)| (p->hl[3])) | m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPXOR: offset = (int32_t)((p->hl[0]<<24)| (p->hl[1]<<16)| (p->hl[2]<<8)| (p->hl[3])) ^ m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPADD: offset = (int32_t)((p->hl[0]<<24)| (p->hl[1]<<16)| (p->hl[2]<<8)| (p->hl[3])) + m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMINUS: offset = (int32_t)((p->hl[0]<<24)| (p->hl[1]<<16)| (p->hl[2]<<8)| (p->hl[3])) - m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMULTIPLY: offset = (int32_t)((p->hl[0]<<24)| (p->hl[1]<<16)| (p->hl[2]<<8)| (p->hl[3])) * m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPDIVIDE: offset = (int32_t)((p->hl[0]<<24)| (p->hl[1]<<16)| (p->hl[2]<<8)| (p->hl[3])) / m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMODULO: offset = (int32_t)((p->hl[0]<<24)| (p->hl[1]<<16)| (p->hl[2]<<8)| (p->hl[3])) % m->in_offset; - break; + /*@innerbreak@*/ break; } } else offset = (int32_t)((p->hl[0]<<24)| @@ -974,56 +974,56 @@ mget(struct magic_set *ms, union VALUETYPE *p, const unsigned char *s, (p->hl[1]<<8)| (p->hl[0])) & m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPOR: offset = (int32_t)((p->hl[3]<<24)| (p->hl[2]<<16)| (p->hl[1]<<8)| (p->hl[0])) | m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPXOR: offset = (int32_t)((p->hl[3]<<24)| (p->hl[2]<<16)| (p->hl[1]<<8)| (p->hl[0])) ^ m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPADD: offset = (int32_t)((p->hl[3]<<24)| (p->hl[2]<<16)| (p->hl[1]<<8)| (p->hl[0])) + m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMINUS: offset = (int32_t)((p->hl[3]<<24)| (p->hl[2]<<16)| (p->hl[1]<<8)| (p->hl[0])) - m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMULTIPLY: offset = (int32_t)((p->hl[3]<<24)| (p->hl[2]<<16)| (p->hl[1]<<8)| (p->hl[0])) * m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPDIVIDE: offset = (int32_t)((p->hl[3]<<24)| (p->hl[2]<<16)| (p->hl[1]<<8)| (p->hl[0])) / m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMODULO: offset = (int32_t)((p->hl[3]<<24)| (p->hl[2]<<16)| (p->hl[1]<<8)| (p->hl[0])) % m->in_offset; - break; + /*@innerbreak@*/ break; } } else offset = (int32_t)((p->hl[3]<<24)| @@ -1038,28 +1038,28 @@ mget(struct magic_set *ms, union VALUETYPE *p, const unsigned char *s, switch (m->in_op & 0x7F) { case FILE_OPAND: offset = p->l & m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPOR: offset = p->l | m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPXOR: offset = p->l ^ m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPADD: offset = p->l + m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMINUS: offset = p->l - m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMULTIPLY: offset = p->l * m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPDIVIDE: offset = p->l / m->in_offset; - break; + /*@innerbreak@*/ break; case FILE_OPMODULO: offset = p->l % m->in_offset; - break; + /*@innerbreak@*/ break; /* case TOOMANYSWITCHBLOCKS: * ugh = p->eye % m->strain; * rub; @@ -1143,13 +1143,13 @@ mcheck(struct magic_set *ms, union VALUETYPE *p, struct magic *m) if (0L == m->mask) { /* normal string: do it fast */ while (--len >= 0) if ((v = *b++ - *a++) != '\0') - break; + /*@loopbreak@*/ break; } else { /* combine the others */ while (--len >= 0) { if ((m->mask & STRING_IGNORE_LOWERCASE) && islower(*a)) { if ((v = tolower(*b++) - *a++) != '\0') - break; + /*@loopbreak@*/ break; } else if ((m->mask & STRING_COMPACT_BLANK) && isspace(*a)) { a++; @@ -1158,7 +1158,7 @@ mcheck(struct magic_set *ms, union VALUETYPE *p, struct magic *m) b++; } else { v = 1; - break; + /*@loopbreak@*/ break; } } else if (isspace(*a) && (m->mask & STRING_COMPACT_OPTIONAL_BLANK)) { @@ -1167,7 +1167,7 @@ mcheck(struct magic_set *ms, union VALUETYPE *p, struct magic *m) b++; } else { if ((v = *b++ - *a++) != '\0') - break; + /*@loopbreak@*/ break; } } } diff --git a/lib/rpmsx.c b/lib/rpmsx.c index 59087d9dd..1eebaee68 100644 --- a/lib/rpmsx.c +++ b/lib/rpmsx.c @@ -160,13 +160,12 @@ static int rpmsxAdd(rpmsx sx, const char ** bpp) } sxs = sx->sxs + sx->nsxs; sxs->len = stem_len; -#ifdef HAVE_STRNDUP +#ifdef HAVE_STRNDUP /*@i@*/ sxs->stem = strndup(*bpp, stem_len); #else sxs->stem = xmalloc(stem_len+1); strncpy(sxs->stem, *bpp, stem_len); #endif - sx->nsxs++; *bpp += stem_len; return sx->nsxs - 1; diff --git a/misc/Makefile.am b/misc/Makefile.am index 86d7fe7de..777ade763 100644 --- a/misc/Makefile.am +++ b/misc/Makefile.am @@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = 1.4 foreign -INCLUDES = -I. -I$(top_srcdir) @INCPATH@ +INCLUDES = -I. -I$(top_srcdir) @INCPATH@ EXTRA_DIST = \ alloca.c basename.c err.c error.c \ @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 2001-07-24 10:02+0100\n" "Last-Translator: Milan Kerslager <kerslage@linux.cz>\n" "Language-Team: Czech <cs@li.org>\n" @@ -3089,27 +3089,27 @@ msgstr "" msgid "Unable to open %s for reading: %s.\n" msgstr "Nemohu otevøít %s: %s\n" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 2001-04-05 23:03GMT\n" "Last-Translator: Claus Hindsgaul <claus_h@image.dk>\n" "Language-Team: Danish <dansk@klid.dk>\n" @@ -3104,27 +3104,27 @@ msgstr "Kunne ikke læse %s, HOME er for stor.\n" msgid "Unable to open %s for reading: %s.\n" msgstr "Kunne ikke åbne %s for læsning: %s.\n" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -38,7 +38,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 1998-08-03 18:02+02:00\n" "Last-Translator: Karl Eichwalder <ke@SuSE.DE>\n" "Language-Team: German <de@li.org>\n" @@ -3271,27 +3271,27 @@ msgstr "" msgid "Unable to open %s for reading: %s.\n" msgstr "Datei %s kann nicht zum Lesen geöffnet werden: %s." -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 1998-05-02 21:41:47-0400\n" "Last-Translator: Raimo Koski <rkoski@pp.weppi.fi>\n" "Language-Team: Finnish <linux@sot.com>\n" @@ -3135,27 +3135,27 @@ msgstr "" msgid "Unable to open %s for reading: %s.\n" msgstr "En voi avata %s luettavaksi: %s." -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: RPM 4.2.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 2003-07-06 01:36+0200\n" "Last-Translator: RPM French Translation <rpm-fr@livna.org>\n" "Language-Team: RPM French Translation <rpm-fr@livna.org>\n" @@ -3117,27 +3117,27 @@ msgstr "Impossible de lire %s, HOME trop gros.\n" msgid "Unable to open %s for reading: %s.\n" msgstr "Impossible d'ouvrir %s en lecture: %s.\n" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 2001-01-13 22:31+0100\n" "Last-Translator: Jesús Bravo Álvarez <jba@pobox.com>\n" "Language-Team: Galician <trasno@ceu.fi.udc.es>\n" @@ -2986,27 +2986,27 @@ msgstr "" msgid "Unable to open %s for reading: %s.\n" msgstr "" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 2001-07-12 13:25+0000\n" "Last-Translator: Richard Allen <ra@hp.is>\n" "Language-Team: is <kde-isl@mmedia.is>\n" @@ -3019,27 +3019,27 @@ msgstr "" msgid "Unable to open %s for reading: %s.\n" msgstr "Get ekki opnað %s til lesturs: %s.\n" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 1999-12-01 22:49 +JST\n" "Last-Translator: Kanda Mitsuru <kanda@nn.iij4u.or.jp>\n" "Language-Team: JRPM <jrpm@linux.or.jp>\n" @@ -3180,27 +3180,27 @@ msgstr "" msgid "Unable to open %s for reading: %s.\n" msgstr "Æɤ߹þ¤à¤¿¤á¤Ë %s ¤ò¥ª¡¼¥×¥ó¤Ç¤¤Þ¤»¤ó: %s¡£" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.4\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 2002-03-04 17:17+0900\n" "Last-Translator: Jong-Hoon Ryu <redhat4u@netian.com>\n" "Language-Team: GNU Translation project <ko@li.org>\n" @@ -3084,27 +3084,27 @@ msgstr "%s(À»)¸¦ ÀÐÀ» ¼ö ¾ø½À´Ï´Ù, HOMEÀÌ ³Ê¹« Å®´Ï´Ù.\n" msgid "Unable to open %s for reading: %s.\n" msgstr "%s(À»)¸¦ ¿ ¼ö ¾øÀ½: %s.\n" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 2001-06-27 12:24+0200\n" "Last-Translator: Kjartan Maraas <kmaraas@gnome.org>\n" "Language-Team: Norwegian <no@li.org>\n" @@ -3056,27 +3056,27 @@ msgstr "" msgid "Unable to open %s for reading: %s.\n" msgstr "Kunne ikke åpne spec fil %s: %s\n" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.3-20030515\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 2003-06-08 22:42+0200\n" "Last-Translator: Arkadiusz Miskiewicz <arekm@pld-linux.org>\n" "Language-Team: Polish <translation-team-pl@lists.sourceforge.net>\n" @@ -3047,27 +3047,27 @@ msgstr "Nie mo¿na odczytaæ %s, HOME jest zbyt du¿e.\n" msgid "Unable to open %s for reading: %s.\n" msgstr "Nie mo¿na otworzyæ %s do odczytu: %s.\n" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "%s: nieprawid³owy kontekst %s w lini numer %d\n" @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 2002-02-14 10:51+0000\n" "Last-Translator: José Nuno Coelho Sanarra Pires <jncp@rnl.ist.utl.pt>\n" "Language-Team: pt <morais@kde.org\n" @@ -3093,27 +3093,27 @@ msgstr "Não consigo ler o %s, a HOME é demasiado grande.\n" msgid "Unable to open %s for reading: %s.\n" msgstr "Não consegui abrir o %s para leitura: %s.\n" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" diff --git a/po/pt_BR.po b/po/pt_BR.po index 98898bf47..678c8c1e1 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 2004-02-29 07:48+0500\n" "Last-Translator: Arnaldo Carvalho de Melo <acme@conectiva.com.br>\n" "Language-Team: Brazilian Portuguese\n" @@ -3327,27 +3327,27 @@ msgstr "" msgid "Unable to open %s for reading: %s.\n" msgstr "No consegui abrir: %s\n" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 1999-04-10 12:00+EST\n" "Last-Translator: Cristian Gafton <gafton@redhat.com>\n" "Language-Team: Romanian <ro@li.org>\n" @@ -2986,27 +2986,27 @@ msgstr "" msgid "Unable to open %s for reading: %s.\n" msgstr "" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" diff --git a/po/rpm.pot b/po/rpm.pot index 8369cba26..14619df7d 100644 --- a/po/rpm.pot +++ b/po/rpm.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -2992,27 +2992,27 @@ msgstr "" msgid "Unable to open %s for reading: %s.\n" msgstr "" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 2002-08-27 13:36-0400\n" "Last-Translator: Eugene Kanter, <eugene@blackcatlinux.com>\n" "Language-Team: Black Cat Linux Team <blackcat-support@blackcatlinux.com>\n" @@ -3061,27 +3061,27 @@ msgstr "îÅ×ÏÚÍÏÖÎÏ ÐÒÏÞÉÔÁÔØ %s, ÚÎÁÞÅÎÉÅ HOME ÓÌÉÛËÏÍ ×ÅÌÉËÏ.\n" msgid "Unable to open %s for reading: %s.\n" msgstr "îÅ×ÏÚÍÏÖÎÏ ÏÔËÒÙÔØ %s ÄÌÑ ÞÔÅÎÉÑ: %s.\n" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 1999-04-08 21:37+02:00\n" "Last-Translator: Stanislav Meduna <stano@eunet.sk>\n" "Language-Team: Slovak <sk-i18n@rak.isternet.sk>\n" @@ -3136,27 +3136,27 @@ msgstr "" msgid "Unable to open %s for reading: %s.\n" msgstr "Nie je mo¾né otvori» %s pre èítanie: %s." -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -1,13 +1,13 @@ # -*- mode:po; coding:iso-latin-2; -*- Slovenian messages for Redhat pkg. mngr. # Copyright (C) 2000 Free Software Foundation, Inc. # Primo¾ Peterlin <primoz.peterlin@biofiz.mf.uni-lj.si>, 2000. -# $Id: sl.po,v 1.389.2.8 2005/01/18 00:30:25 jbj Exp $ +# $Id: sl.po,v 1.389.2.9 2005/01/23 20:45:06 jbj Exp $ # msgid "" msgstr "" "Project-Id-Version: rpm 4.0.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 2000-10-08 19:05+0200\n" "Last-Translator: Grega Fajdiga <gregor.fajdiga@telemach.net>\n" "Language-Team: Slovenian <sl@li.org>\n" @@ -3140,27 +3140,27 @@ msgstr "Ni mo¾no prebrati %s, HOME je prevelik." msgid "Unable to open %s for reading: %s.\n" msgstr "%s ni mo¾no odpreti za branje: %s." -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 2004-02-29 07:48+0500\n" "Last-Translator: unknown\n" "Language-Team: unknown\n" @@ -3129,27 +3129,27 @@ msgstr "" msgid "Unable to open %s for reading: %s.\n" msgstr "Ne mogu da otvorim %s za èitanje: %s" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 2003-02-05 12:40+0100\n" "Last-Translator: Göran Uddeborg <goeran@uddeborg.pp.se>\n" "Language-Team: Swedish <sv@li.org>\n" @@ -3047,27 +3047,27 @@ msgstr "Kan inte läsa %s, HOME är för stor.\n" msgid "Unable to open %s for reading: %s.\n" msgstr "Kan inte öppna %s för läsning: %s.\n" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-17 19:28-0500\n" +"POT-Creation-Date: 2005-01-23 15:29-0500\n" "PO-Revision-Date: 2001-07-05 08:02+300\n" "Last-Translator: Nilgun Belma Buguner <nilgun@technologist.com>\n" "Language-Team: Turkish <tr@li.org>\n" @@ -3105,27 +3105,27 @@ msgstr "%s okunamýyor, EV çok büyük\n" msgid "Unable to open %s for reading: %s.\n" msgstr "%s okuma eriþimi için açýlamadý: %s.\n" -#: lib/rpmsx.c:375 +#: lib/rpmsx.c:374 #, c-format msgid "%s: no newline on line number %d (only read %s)\n" msgstr "" -#: lib/rpmsx.c:392 +#: lib/rpmsx.c:391 #, c-format msgid "%s: line number %d is missing fields (only read %s)\n" msgstr "" -#: lib/rpmsx.c:425 +#: lib/rpmsx.c:424 #, c-format msgid "%s: unable to compile regular expression %s on line number %d: %s\n" msgstr "" -#: lib/rpmsx.c:440 lib/rpmsx.c:455 +#: lib/rpmsx.c:439 lib/rpmsx.c:454 #, c-format msgid "%s: invalid type specifier %s on line number %d\n" msgstr "" -#: lib/rpmsx.c:468 +#: lib/rpmsx.c:467 #, c-format msgid "%s: invalid context %s on line number %d\n" msgstr "" diff --git a/python/Makefile.am b/python/Makefile.am index 2f3841a64..ffaaf605b 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -12,13 +12,13 @@ SUBDIRS = rpmdb rpm EXTRA_DIST = system.h rpmdebug-py.c INCLUDES = -I. \ - -I$(top_srcdir) \ + -I$(top_srcdir)/build \ -I$(top_srcdir)/lib \ -I$(top_srcdir)/rpmdb \ -I$(top_srcdir)/rpmio \ @WITH_BEECRYPT_INCLUDE@ \ -I$(top_srcdir)/popt \ - -I$(top_srcdir)/build \ + -I$(top_srcdir)/misc \ -I$(pyincdir) \ @WITH_LIBELF_INCLUDE@ \ @INCPATH@ diff --git a/python/rpmts-py.c b/python/rpmts-py.c index 56d386af7..30a8de55c 100644 --- a/python/rpmts-py.c +++ b/python/rpmts-py.c @@ -1073,6 +1073,8 @@ rpmtsCallback(/*@unused@*/ const void * hd, const rpmCallbackType what, if (_rpmts_debug) fprintf(stderr, "\t%p = fdDup(%d)\n", fd, fdno); + fcntl(Fileno(fd), F_SETFD, FD_CLOEXEC); + return fd; } else if (what == RPMCALLBACK_INST_CLOSE_FILE) { diff --git a/rpmdb/legacy.c b/rpmdb/legacy.c index 8dde15494..5da92a3dc 100644 --- a/rpmdb/legacy.c +++ b/rpmdb/legacy.c @@ -196,8 +196,8 @@ int domd5(const char * fn, unsigned char * digest, int asAscii, size_t *fsizep) #endif case URL_IS_HTTPS: case URL_IS_HTTP: - case URL_IS_HKP: case URL_IS_FTP: + case URL_IS_HKP: case URL_IS_DASH: default: /* Either use the pipe to prelink -y or open the URL. */ diff --git a/rpmdb/rpmdb.c b/rpmdb/rpmdb.c index e54cae0c0..43f6ba139 100644 --- a/rpmdb/rpmdb.c +++ b/rpmdb/rpmdb.c @@ -931,8 +931,8 @@ rpmdb newRpmdb(/*@kept@*/ /*@null@*/ const char * root, break; case URL_IS_HTTPS: case URL_IS_HTTP: - case URL_IS_HKP: case URL_IS_FTP: + case URL_IS_HKP: case URL_IS_DASH: default: db->db_root = rpmGetPath(_DB_ROOT, NULL); @@ -3490,8 +3490,8 @@ static int rpmioFileExists(const char * urlfn) switch (urltype) { case URL_IS_HTTPS: /* XXX WRONG WRONG WRONG */ case URL_IS_HTTP: /* XXX WRONG WRONG WRONG */ - case URL_IS_HKP: /* XXX WRONG WRONG WRONG */ case URL_IS_FTP: /* XXX WRONG WRONG WRONG */ + case URL_IS_HKP: /* XXX WRONG WRONG WRONG */ case URL_IS_PATH: case URL_IS_UNKNOWN: if (Stat(fn, &buf)) { diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c index 6dade9e4a..f8a1cf63e 100644 --- a/rpmio/rpmio.c +++ b/rpmio/rpmio.c @@ -673,7 +673,7 @@ fprintf(stderr, "*** read: fd %p rc %d EOF errno %d %s \"%s\"\n", fd, rc, errno, */ const char *const ftpStrerror(int errorNumber) { - switch (errorNumber) { + switch (errorNumber) { case 0: return _("Success"); @@ -723,7 +723,7 @@ const char *const ftpStrerror(int errorNumber) case FTPERR_UNKNOWN: default: return _("Unknown or unexpected error"); - } + } } const char *urlStrerror(const char *url) diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c index b5e46640d..67877ddd9 100644 --- a/rpmio/rpmpgp.c +++ b/rpmio/rpmpgp.c @@ -378,7 +378,7 @@ int pgpPrtSubType(const byte *h, unsigned int hlen, pgpSigType sigtype) pgpPrtVal(" ", pgpSubTypeTbl, (p[0]&(~PGPSUBTYPE_CRITICAL))); if (p[0] & PGPSUBTYPE_CRITICAL) if (_print) - fprintf(stderr, " *CRITICAL*"); + fprintf(stderr, " *CRITICAL*"); switch (*p) { case PGPSUBTYPE_PREFER_SYMKEY: /* preferred symmetric algorithms */ for (i = 1; i < plen; i++) |