summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/depends.c6
-rw-r--r--lib/poptALL.c2
-rw-r--r--lib/rpmrc.c3
-rw-r--r--lib/rpmts.c12
4 files changed, 6 insertions, 17 deletions
diff --git a/lib/depends.c b/lib/depends.c
index 39150d3a7..989cb6c21 100644
--- a/lib/depends.c
+++ b/lib/depends.c
@@ -474,7 +474,7 @@ static int unsatisfiedDepend(rpmts ts, rpmds dep, int adding)
retry:
rc = 0; /* assume dependency is satisfied */
-#if defined(DYING) || defined(__LCLINT__)
+#if defined(DYING)
{ static /*@observer@*/ const char noProvidesString[] = "nada";
static /*@observer@*/ const char * rcProvidesString = noProvidesString;
int_32 Flags = rpmdsFlags(dep);
@@ -558,7 +558,7 @@ retry:
}
mi = rpmdbFreeIterator(mi);
-#if defined(DYING) || defined(__LCLINT__)
+#if defined(DYING)
mi = rpmtsInitIterator(ts, RPMTAG_NAME, Name, 0);
(void) rpmdbPruneIterator(mi,
ts->removedPackages, ts->numRemovedPackages, 1);
@@ -1746,7 +1746,7 @@ int rpmtsCheck(rpmts ts)
rpmteNEVR(p), rpmteA(p), rpmteO(p), rpmteColor(p));
/*@=nullpass@*/
-#if defined(DYING) || defined(__LCLINT__)
+#if defined(DYING)
/* XXX all packages now have Provides: name = version-release */
/* Erasing: check name against requiredby matches. */
rc = checkDependentPackages(ts, rpmteN(p));
diff --git a/lib/poptALL.c b/lib/poptALL.c
index e1c6e43fa..ceffbcffb 100644
--- a/lib/poptALL.c
+++ b/lib/poptALL.c
@@ -409,7 +409,7 @@ rpmcliInit(int argc, char *const argv[], struct poptOption * optionsTable)
}
/*@=globs =mods@*/
-#if defined(ENABLE_NLS) && !defined(__LCLINT__)
+#if defined(ENABLE_NLS)
(void) setlocale(LC_ALL, "" );
(void) bindtextdomain(PACKAGE, LOCALEDIR);
(void) textdomain(PACKAGE);
diff --git a/lib/rpmrc.c b/lib/rpmrc.c
index f26734215..32b6e3204 100644
--- a/lib/rpmrc.c
+++ b/lib/rpmrc.c
@@ -895,9 +895,6 @@ exit:
static inline void cpuid(unsigned int op, int *eax, int *ebx, int *ecx, int *edx)
/*@modifies *eax, *ebx, *ecx, *edx @*/
{
-#ifdef __LCLINT__
- *eax = *ebx = *ecx = *edx = 0;
-#endif
asm volatile (
"pushl %%ebx \n"
"cpuid \n"
diff --git a/lib/rpmts.c b/lib/rpmts.c
index 32f83e545..9fe1f7203 100644
--- a/lib/rpmts.c
+++ b/lib/rpmts.c
@@ -25,16 +25,8 @@
/* portability fiddles */
#if STATFS_IN_SYS_STATVFS
/*@-incondefs@*/
-#if defined(__LCLINT__)
-/*@-declundef -exportheader -protoparammatch @*/ /* LCL: missing annotation */
-extern int statvfs (const char * file, /*@out@*/ struct statvfs * buf)
- /*@globals fileSystem @*/
- /*@modifies *buf, fileSystem @*/;
-/*@=declundef =exportheader =protoparammatch @*/
-/*@=incondefs@*/
-#else
-# include <sys/statvfs.h>
-#endif
+#include <sys/statvfs.h>
+
#else
# if STATFS_IN_SYS_VFS
# include <sys/vfs.h>