splint fiddles.
authorjbj <devnull@localhost>
Tue, 5 Nov 2002 23:08:19 +0000 (23:08 +0000)
committerjbj <devnull@localhost>
Tue, 5 Nov 2002 23:08:19 +0000 (23:08 +0000)
CVS patchset: 5828
CVS date: 2002/11/05 23:08:19

lib/poptALL.c
lib/psm.c
rpmdb/legacy.c
zlib/zconf.h

index 1c598b9cc850894bbfcf25574acdbbf653f25a7b..4e50da08410d884f7c01c33c4d4c765346580416 100644 (file)
@@ -332,12 +332,8 @@ rpmcliInit(int argc, char *const argv[], struct poptOption * optionsTable)
     }
 /*@=globs =mods@*/
 
-#if defined(ENABLE_NLS)
+#if defined(ENABLE_NLS) && !defined(__LCLINT__)
     (void) setlocale(LC_ALL, "" );
-
-#ifdef __LCLINT__
-#define LOCALEDIR      "/usr/share/locale"
-#endif
     (void) bindtextdomain(PACKAGE, LOCALEDIR);
     (void) textdomain(PACKAGE);
 #endif
index 0134b95ecd43a45e59ebf17193254ae77ef5dfa0..f6c645d6e89aaaab13915d5bd888c4423ee42fec 100644 (file)
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -858,7 +858,7 @@ static int psmWaitUnregister(rpmpsm psm, pid_t child)
     /*@-infloops@*/
     while (psm->reaped != psm->child) {
        (void) sigprocmask(SIG_SETMASK, &oldMask, NULL);
-       sleep(1);       /* XXX sleep guarantees loop traversal. */
+       (void) sleep(1);        /* XXX sleep guarantees loop traversal. */
        (void) sigprocmask(SIG_BLOCK, &newMask, &oldMask);
     }
     /*@=infloops@*/
index 11f5340eef663d589097de77cd1f790b1f07d589..ebf0c447277b155206d3940d51331622fe4cde1e 100644 (file)
@@ -79,11 +79,13 @@ static int open_dso(const char * path, /*@null@*/ pid_t * pidp, /*@null@*/ size_
 
     (void) elf_version(EV_CURRENT);
 
+/*@-evalorder@*/
     if ((elf = elf_begin (fdno, ELF_C_READ, NULL)) == NULL
      || elf_kind(elf) != ELF_K_ELF
      || gelf_getehdr(elf, &ehdr) == NULL
      || !(ehdr.e_type == ET_DYN || ehdr.e_type == ET_EXEC))
        goto exit;
+/*@=evalorder@*/
 
     bingo = 0;
     /*@-branchstate -uniondef @*/
index dc19102699fda187620dd6723e67b2848e00b21a..40b82068a7c6d6cb95cf8a998a10fe5ea7db1025 100644 (file)
@@ -4,7 +4,7 @@
  * For conditions of distribution and use, see copyright notice in zlib.h 
  */
 
-/* @(#) $Id: zconf.h,v 1.6 2002/03/17 15:46:23 jbj Exp $ */
+/* @(#) $Id: zconf.h,v 1.7 2002/04/07 19:52:43 jbj Exp $ */
 
 #ifndef _ZCONF_H
 #define _ZCONF_H
                         /* Type declarations */
 
 #ifndef OF /* function prototypes */
-#  ifdef STDC
+#  if defined(STDC) || defined(__LCLINT__)
 #    define OF(args)  args
 #  else
 #    define OF(args)  ()