Fiddles to resurrect lclint.

CVS patchset: 3281
CVS date: 1999/09/12 20:43:23
This commit is contained in:
jbj 1999-09-12 20:43:23 +00:00
parent fa165f1417
commit f005d4c15c
18 changed files with 133 additions and 89 deletions

View File

@ -2,7 +2,7 @@
#include <rpmlib.h> #include <rpmlib.h>
int dbiIndexSetCount(dbiIndexSet set) { unsigned int dbiIndexSetCount(dbiIndexSet set) {
return set.count; return set.count;
} }

View File

@ -47,7 +47,7 @@ dbiIndexSet dbiCreateIndexRecord(void);
void dbiFreeIndexRecord(dbiIndexSet set); void dbiFreeIndexRecord(dbiIndexSet set);
int dbiGetFirstKey(dbiIndex * dbi, const char ** key); int dbiGetFirstKey(dbiIndex * dbi, const char ** key);
extern int dbiIndexSetCount(dbiIndexSet set); extern unsigned int dbiIndexSetCount(dbiIndexSet set);
/* structure return */ /* structure return */
extern dbiIndexRecord dbiReturnIndexRecordInstance(unsigned int recOffset, unsigned int fileNumber); extern dbiIndexRecord dbiReturnIndexRecordInstance(unsigned int recOffset, unsigned int fileNumber);

View File

@ -355,7 +355,7 @@ static int rangeMatchesDepFlags (Header h, const char *reqName, const char * req
return result; return result;
} }
int headerMatchesDepFlags(Header h, const char *reqName, const char * reqEVR, int reqFlags) int headerMatchesDepFlags(Header h, /*@unused@*/const char *reqName, const char * reqEVR, int reqFlags)
{ {
const char * epoch, * version, * release; const char * epoch, * version, * release;
const char * reqEpoch = NULL; const char * reqEpoch = NULL;

View File

@ -15,7 +15,7 @@ struct lookupCache {
static int strCompare(const void * a, const void * b) static int strCompare(const void * a, const void * b)
{ {
const char * const * one = a; const char * const * one = a;
const char * const * two = a; const char * const * two = b;
return strcmp(*one, *two); return strcmp(*one, *two);
} }

View File

@ -7,27 +7,32 @@
#define HAVE_SYS_SOCKET_H 1 #define HAVE_SYS_SOCKET_H 1
#endif #endif
#ifndef __LCLINT__ #if ! HAVE_HERRNO
extern int h_errno;
#endif
#include <stdarg.h>
#ifdef __LCLINT__
#define ntohl(_x) (_x)
#define ntohs(_x) (_x)
#define htonl(_x) (_x)
#define htons(_x) (_x)
#else
#if HAVE_MACHINE_TYPES_H #if HAVE_MACHINE_TYPES_H
# include <machine/types.h> # include <machine/types.h>
#endif #endif
#endif
#if HAVE_NETINET_IN_SYSTM_H #if HAVE_NETINET_IN_SYSTM_H
# include <sys/types.h> # include <sys/types.h>
# include <netinet/in_systm.h> # include <netinet/in_systm.h>
#endif #endif
#if ! HAVE_HERRNO
extern int h_errno;
#endif
#include <stdarg.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/ip.h> #include <netinet/ip.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <arpa/telnet.h> #include <arpa/telnet.h>
#endif /* __LCLINT__ */
#include <rpmlib.h> #include <rpmlib.h>
#include <rpmio.h> #include <rpmio.h>

View File

@ -20,8 +20,8 @@ hashTable htCreate(int numBuckets, int keySize, hashFunctionType fn,
void htAddEntry(hashTable ht, const void * key, const void * data); void htAddEntry(hashTable ht, const void * key, const void * data);
void htFree(hashTable ht); void htFree(hashTable ht);
/* returns 0 on success, 1 if the item is not found. tableKey may be NULL */ /* returns 0 on success, 1 if the item is not found. tableKey may be NULL */
int htGetEntry(hashTable ht, const void * key, const void *** data, int * dataCount, int htGetEntry(hashTable ht, const void * key, /*@out@*/const void *** data, /*@out@*/int * dataCount,
const void ** tableKey); /*@out@*/const void ** tableKey);
/* returns 1 if the item is present, 0 otherwise */ /* returns 1 if the item is present, 0 otherwise */
int htHasEntry(hashTable ht, const void * key); int htHasEntry(hashTable ht, const void * key);

View File

@ -9,7 +9,14 @@
#include "system.h" #include "system.h"
#ifdef __LCLINT__
#define ntohl(_x) (_x)
#define ntohs(_x) (_x)
#define htonl(_x) (_x)
#define htons(_x) (_x)
#else
#include <netinet/in.h> #include <netinet/in.h>
#endif /* __LCLINT__ */
#include <rpmio.h> #include <rpmio.h>
#include <header.h> #include <header.h>

View File

@ -134,7 +134,7 @@ int headerAddOrAppendEntry(Header h, int_32 tag, int_32 type,
/* Will never return RPM_I18NSTRING_TYPE! RPM_STRING_TYPE elements w/ /* Will never return RPM_I18NSTRING_TYPE! RPM_STRING_TYPE elements w/
RPM_I18NSTRING_TYPE equivalent enreies are translated (if HEADER_I18NTABLE RPM_I18NSTRING_TYPE equivalent enreies are translated (if HEADER_I18NTABLE
entry is present). */ entry is present). */
int headerGetEntry(Header h, int_32 tag, int_32 *type, /*@out@*/void **p, int_32 *c); int headerGetEntry(Header h, int_32 tag, /*@out@*/int_32 *type, /*@out@*/void **p, /*@out@*/int_32 *c);
/* This gets an entry, and uses as little extra RAM as possible to represent /* This gets an entry, and uses as little extra RAM as possible to represent
it (this is only an issue for RPM_STRING_ARRAY_TYPE. */ it (this is only an issue for RPM_STRING_ARRAY_TYPE. */
int headerGetEntryMinMemory(Header h, int_32 tag, int_32 *type, /*@out@*/void **p, int_32 *c); int headerGetEntryMinMemory(Header h, int_32 tag, int_32 *type, /*@out@*/void **p, int_32 *c);

View File

@ -8,7 +8,7 @@ extern "C" {
#endif #endif
int findMatches(rpmdb db, const char * name, const char * version, int findMatches(rpmdb db, const char * name, const char * version,
const char * release, dbiIndexSet * matches); const char * release, /*@out@*/dbiIndexSet * matches);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -1,6 +1,13 @@
#include "system.h" #include "system.h"
#ifdef __LCLINT__
#define ntohl(_x) (_x)
#define ntohs(_x) (_x)
#define htonl(_x) (_x)
#define htons(_x) (_x)
#else
#include <netinet/in.h> #include <netinet/in.h>
#endif /* __LCLINT__ */
#include <rpmlib.h> #include <rpmlib.h>

View File

@ -1,6 +1,13 @@
#include "system.h" #include "system.h"
#ifdef __LCLINT__
#define ntohl(_x) (_x)
#define ntohs(_x) (_x)
#define htonl(_x) (_x)
#define htons(_x) (_x)
#else
#include <netinet/in.h> #include <netinet/in.h>
#endif /* __LCLINT__ */
#include <rpmlib.h> #include <rpmlib.h>

View File

@ -21,7 +21,7 @@ int rpmdbUpdateRecord(rpmdb db, int secOffset, Header secHeader);
void rpmdbRemoveDatabase(const char * rootdir, const char * dbpath); void rpmdbRemoveDatabase(const char * rootdir, const char * dbpath);
int rpmdbMoveDatabase(const char * rootdir, const char * olddbpath, const char * newdbpath); int rpmdbMoveDatabase(const char * rootdir, const char * olddbpath, const char * newdbpath);
/* matchList must be preallocated!!! */ /* matchList must be preallocated!!! */
int rpmdbFindFpList(rpmdb db, fingerPrint * fpList, dbiIndexSet * matchList, int rpmdbFindFpList(rpmdb db, fingerPrint * fpList, /*@out@*/dbiIndexSet * matchList,
int numItems); int numItems);
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -4,7 +4,14 @@
# include <machine/types.h> # include <machine/types.h>
#endif #endif
#ifdef __LCLINT__
#define ntohl(_x) (_x)
#define ntohs(_x) (_x)
#define htonl(_x) (_x)
#define htons(_x) (_x)
#else
#include <netinet/in.h> #include <netinet/in.h>
#endif /* __LCLINT__ */
#include <rpmlib.h> #include <rpmlib.h>

View File

@ -14,11 +14,11 @@
extern "C" { extern "C" {
#endif #endif
int rpmReadPackageInfo(FD_t fd, Header * signatures, Header * hdr); int rpmReadPackageInfo(FD_t fd, /*@out@*/Header * signatures, /*@out@*/Header * hdr);
int rpmReadPackageHeader(FD_t fd, Header * hdr, int * isSource, int * major, int rpmReadPackageHeader(FD_t fd, /*@out@*/Header * hdr, /*@out@*/int * isSource, /*@out@*/int * major,
int * minor); /*@out@*/int * minor);
int headerNVR(Header h, const char **np, const char **vp, const char **rp); int headerNVR(Header h, /*@out@*/const char **np, /*@out@*/const char **vp, /*@out@*/const char **rp);
/* 0 = success */ /* 0 = success */
/* 1 = bad magic */ /* 1 = bad magic */
@ -310,17 +310,17 @@ int rpmdbNextRecNum(rpmdb db, unsigned int lastOffset);
/* 0 at end, -1 on error */ /* 0 at end, -1 on error */
Header rpmdbGetRecord(rpmdb db, unsigned int offset); Header rpmdbGetRecord(rpmdb db, unsigned int offset);
int rpmdbFindByFile(rpmdb db, const char * filespec, dbiIndexSet * matches); int rpmdbFindByFile(rpmdb db, const char * filespec, /*@out@*/dbiIndexSet * matches);
int rpmdbFindByGroup(rpmdb db, const char * group, dbiIndexSet * matches); int rpmdbFindByGroup(rpmdb db, const char * group, /*@out@*/dbiIndexSet * matches);
int rpmdbFindPackage(rpmdb db, const char * name, dbiIndexSet * matches); int rpmdbFindPackage(rpmdb db, const char * name, /*@out@*/dbiIndexSet * matches);
int rpmdbFindByProvides(rpmdb db, const char * provides, dbiIndexSet * matches); int rpmdbFindByProvides(rpmdb db, const char * provides, /*@out@*/dbiIndexSet * matches);
int rpmdbFindByRequiredBy(rpmdb db, const char * requires, dbiIndexSet * matches); int rpmdbFindByRequiredBy(rpmdb db, const char * requires, /*@out@*/dbiIndexSet * matches);
int rpmdbFindByConflicts(rpmdb db, const char * conflicts, dbiIndexSet * matches); int rpmdbFindByConflicts(rpmdb db, const char * conflicts, /*@out@*/dbiIndexSet * matches);
int rpmdbFindByTriggeredBy(rpmdb db, const char * package, dbiIndexSet * matches); int rpmdbFindByTriggeredBy(rpmdb db, const char * package, /*@out@*/dbiIndexSet * matches);
/* these are just convenience functions */ /* these are just convenience functions */
int rpmdbFindByLabel(rpmdb db, const char * label, dbiIndexSet * matches); int rpmdbFindByLabel(rpmdb db, const char * label, /*@out@*/dbiIndexSet * matches);
int rpmdbFindByHeader(rpmdb db, Header h, dbiIndexSet * matches); int rpmdbFindByHeader(rpmdb db, Header h, /*@out@*/dbiIndexSet * matches);
/* we pass these around as an array with a sentinel */ /* we pass these around as an array with a sentinel */
typedef struct rpmRelocation_s { typedef struct rpmRelocation_s {
@ -628,7 +628,7 @@ void rpmFreeSignature(Header h);
int rpmVerifySignature(const char *file, int_32 sigTag, void *sig, int count, int rpmVerifySignature(const char *file, int_32 sigTag, void *sig, int count,
char *result); char *result);
int rpmGetFilesystemList(const char *** listptr, int * num); int rpmGetFilesystemList(/*@out@*/const char *** listptr, /*@out@*/int * num);
int rpmGetFilesystemUsage(const char ** filelist, int_32 * fssizes, int numFiles, int rpmGetFilesystemUsage(const char ** filelist, int_32 * fssizes, int numFiles,
uint_32 ** usagesPtr, int flags); uint_32 ** usagesPtr, int flags);

View File

@ -579,7 +579,7 @@ static int handleInstInstalledFiles(struct fileInfo * fi, rpmdb db,
uint_16 * otherModes; uint_16 * otherModes;
int numReplaced = 0; int numReplaced = 0;
if (!(h = rpmdbGetRecord(db, shared->otherPkg))) if ((h = rpmdbGetRecord(db, shared->otherPkg)) == NULL)
return 1; return 1;
headerGetEntryMinMemory(h, RPMTAG_FILEMD5S, NULL, headerGetEntryMinMemory(h, RPMTAG_FILEMD5S, NULL,
@ -655,7 +655,7 @@ static int handleRmvdInstalledFiles(struct fileInfo * fi, rpmdb db,
const char * otherStates; const char * otherStates;
int i; int i;
if (!(h = rpmdbGetRecord(db, shared->otherPkg))) if ((h = rpmdbGetRecord(db, shared->otherPkg)) == NULL)
return 1; return 1;
headerGetEntryMinMemory(h, RPMTAG_FILESTATES, NULL, headerGetEntryMinMemory(h, RPMTAG_FILESTATES, NULL,
@ -1083,8 +1083,8 @@ int rpmRunTransactions(rpmTransactionSet ts, rpmCallbackFunction notify,
if (rc == 2) { if (rc == 2) {
return -1; return -1;
} else if (!rc) { } else if (!rc) {
for (i = 0; i < dbi.count; i++) for (i = 0; i < dbiIndexSetCount(dbi); i++)
ensureOlder(ts->db, alp->h, dbi.recs[i].recOffset, ensureOlder(ts->db, alp->h, dbiIndexRecordOffset(dbi, i),
probs, alp->key); probs, alp->key);
dbiFreeIndexRecord(dbi); dbiFreeIndexRecord(dbi);
@ -1155,7 +1155,7 @@ int rpmRunTransactions(rpmTransactionSet ts, rpmCallbackFunction notify,
case TR_REMOVED: case TR_REMOVED:
fi->record = ts->order[oc].u.removed.dboffset; fi->record = ts->order[oc].u.removed.dboffset;
fi->h = rpmdbGetRecord(ts->db, fi->record); fi->h = rpmdbGetRecord(ts->db, fi->record);
if (!fi->h) { if (fi->h == NULL) {
/* ACK! */ /* ACK! */
continue; continue;
} }
@ -1257,7 +1257,7 @@ int rpmRunTransactions(rpmTransactionSet ts, rpmCallbackFunction notify,
numShared = 0; numShared = 0;
for (i = 0; i < fi->fc; i++) for (i = 0; i < fi->fc; i++)
numShared += matches[i].count; numShared += dbiIndexSetCount(matches[i]);
/* Build sorted file info list for this package. */ /* Build sorted file info list for this package. */
shared = sharedList = malloc(sizeof(*sharedList) * (numShared + 1)); shared = sharedList = malloc(sizeof(*sharedList) * (numShared + 1));
@ -1266,9 +1266,9 @@ int rpmRunTransactions(rpmTransactionSet ts, rpmCallbackFunction notify,
* Take care not to mark files as replaced in packages that will * Take care not to mark files as replaced in packages that will
* have been removed before we will get here. * have been removed before we will get here.
*/ */
for (j = 0; j < matches[i].count; j++) { for (j = 0; j < dbiIndexSetCount(matches[i]); j++) {
int k, ro; int k, ro;
ro = matches[i].recs[j].recOffset; ro = dbiIndexRecordOffset(matches[i], j);
knownBad = 0; knownBad = 0;
for (k = 0; ro != knownBad && k < ts->orderCount; k++) { for (k = 0; ro != knownBad && k < ts->orderCount; k++) {
switch (ts->order[k].type) { switch (ts->order[k].type) {
@ -1282,8 +1282,8 @@ int rpmRunTransactions(rpmTransactionSet ts, rpmCallbackFunction notify,
} }
shared->pkgFileNum = i; shared->pkgFileNum = i;
shared->otherPkg = matches[i].recs[j].recOffset; shared->otherPkg = dbiIndexRecordOffset(matches[i], j);
shared->otherFileNum = matches[i].recs[j].fileNumber; shared->otherFileNum = dbiIndexRecordFileNumber(matches[i], j);
shared->isRemoved = (knownBad == ro); shared->isRemoved = (knownBad == ro);
shared++; shared++;
} }

View File

@ -1,6 +1,13 @@
#include "system.h" #include "system.h"
#ifdef __LCLINT__
#define ntohl(_x) (_x)
#define ntohs(_x) (_x)
#define htonl(_x) (_x)
#define htons(_x) (_x)
#else
#include <netinet/in.h> #include <netinet/in.h>
#endif /* __LCLINT__ */
#include "build/rpmbuild.h" #include "build/rpmbuild.h"

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 1999-09-11 19:59-0400\n" "POT-Creation-Date: 1999-09-12 16:38-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -2012,8 +2012,8 @@ msgid ""
msgstr "" msgstr ""
#: ../lib/formats.c:65 ../lib/formats.c:83 ../lib/formats.c:104 #: ../lib/formats.c:65 ../lib/formats.c:83 ../lib/formats.c:104
#: ../lib/formats.c:137 ../lib/header.c:2078 ../lib/header.c:2095 #: ../lib/formats.c:137 ../lib/header.c:2085 ../lib/header.c:2102
#: ../lib/header.c:2115 #: ../lib/header.c:2122
msgid "(not a number)" msgid "(not a number)"
msgstr "" msgstr ""
@ -2041,136 +2041,136 @@ msgstr ""
msgid "file %s is on an unknown device" msgid "file %s is on an unknown device"
msgstr "" msgstr ""
#: ../lib/ftp.c:650 #: ../lib/ftp.c:655
msgid "Success" msgid "Success"
msgstr "" msgstr ""
#: ../lib/ftp.c:653 #: ../lib/ftp.c:658
msgid "Bad server response" msgid "Bad server response"
msgstr "" msgstr ""
#: ../lib/ftp.c:656 #: ../lib/ftp.c:661
msgid "Server IO error" msgid "Server IO error"
msgstr "" msgstr ""
#: ../lib/ftp.c:659 #: ../lib/ftp.c:664
msgid "Server timeout" msgid "Server timeout"
msgstr "" msgstr ""
#: ../lib/ftp.c:662 #: ../lib/ftp.c:667
msgid "Unable to lookup server host address" msgid "Unable to lookup server host address"
msgstr "" msgstr ""
#: ../lib/ftp.c:665 #: ../lib/ftp.c:670
msgid "Unable to lookup server host name" msgid "Unable to lookup server host name"
msgstr "" msgstr ""
#: ../lib/ftp.c:668 #: ../lib/ftp.c:673
msgid "Failed to connect to server" msgid "Failed to connect to server"
msgstr "" msgstr ""
#: ../lib/ftp.c:671 #: ../lib/ftp.c:676
msgid "Failed to establish data connection to server" msgid "Failed to establish data connection to server"
msgstr "" msgstr ""
#: ../lib/ftp.c:674 #: ../lib/ftp.c:679
msgid "IO error to local file" msgid "IO error to local file"
msgstr "" msgstr ""
#: ../lib/ftp.c:677 #: ../lib/ftp.c:682
msgid "Error setting remote server to passive mode" msgid "Error setting remote server to passive mode"
msgstr "" msgstr ""
#: ../lib/ftp.c:680 #: ../lib/ftp.c:685
msgid "File not found on server" msgid "File not found on server"
msgstr "" msgstr ""
#: ../lib/ftp.c:683 #: ../lib/ftp.c:688
msgid "Abort in progress" msgid "Abort in progress"
msgstr "" msgstr ""
#: ../lib/ftp.c:687 #: ../lib/ftp.c:692
msgid "Unknown or unexpected error" msgid "Unknown or unexpected error"
msgstr "" msgstr ""
#. This should not be allowed #. This should not be allowed
#: ../lib/header.c:162 #: ../lib/header.c:169
msgid "grabData() RPM_STRING_TYPE count must be 1.\n" msgid "grabData() RPM_STRING_TYPE count must be 1.\n"
msgstr "" msgstr ""
#: ../lib/header.c:192 #: ../lib/header.c:199
#, c-format #, c-format
msgid "Data type %d not supported\n" msgid "Data type %d not supported\n"
msgstr "" msgstr ""
#: ../lib/header.c:734 #: ../lib/header.c:741
#, c-format #, c-format
msgid "Data type %d not supprted\n" msgid "Data type %d not supprted\n"
msgstr "" msgstr ""
#: ../lib/header.c:1078 #: ../lib/header.c:1085
#, c-format #, c-format
msgid "Bad count for headerAddEntry(): %d\n" msgid "Bad count for headerAddEntry(): %d\n"
msgstr "" msgstr ""
#: ../lib/header.c:1478 #: ../lib/header.c:1485
#, c-format #, c-format
msgid "missing { after %" msgid "missing { after %"
msgstr "" msgstr ""
#: ../lib/header.c:1506 #: ../lib/header.c:1513
msgid "missing } after %{" msgid "missing } after %{"
msgstr "" msgstr ""
#: ../lib/header.c:1518 #: ../lib/header.c:1525
msgid "empty tag format" msgid "empty tag format"
msgstr "" msgstr ""
#: ../lib/header.c:1528 #: ../lib/header.c:1535
msgid "empty tag name" msgid "empty tag name"
msgstr "" msgstr ""
#: ../lib/header.c:1543 #: ../lib/header.c:1550
msgid "unknown tag" msgid "unknown tag"
msgstr "" msgstr ""
#: ../lib/header.c:1569 #: ../lib/header.c:1576
msgid "] expected at end of array" msgid "] expected at end of array"
msgstr "" msgstr ""
#: ../lib/header.c:1585 #: ../lib/header.c:1592
msgid "unexpected ]" msgid "unexpected ]"
msgstr "" msgstr ""
#: ../lib/header.c:1587 #: ../lib/header.c:1594
msgid "unexpected }" msgid "unexpected }"
msgstr "" msgstr ""
#: ../lib/header.c:1639 #: ../lib/header.c:1646
msgid "? expected in expression" msgid "? expected in expression"
msgstr "" msgstr ""
#: ../lib/header.c:1646 #: ../lib/header.c:1653
msgid "{ expected after ? in expression" msgid "{ expected after ? in expression"
msgstr "" msgstr ""
#: ../lib/header.c:1656 ../lib/header.c:1688 #: ../lib/header.c:1663 ../lib/header.c:1695
msgid "} expected in expression" msgid "} expected in expression"
msgstr "" msgstr ""
#: ../lib/header.c:1663 #: ../lib/header.c:1670
msgid ": expected following ? subexpression" msgid ": expected following ? subexpression"
msgstr "" msgstr ""
#: ../lib/header.c:1676 #: ../lib/header.c:1683
msgid "{ expected after : in expression" msgid "{ expected after : in expression"
msgstr "" msgstr ""
#: ../lib/header.c:1695 #: ../lib/header.c:1702
msgid "| expected at end of expression" msgid "| expected at end of expression"
msgstr "" msgstr ""
#: ../lib/header.c:1862 #: ../lib/header.c:1869
msgid "(unknown type)" msgid "(unknown type)"
msgstr "" msgstr ""
@ -2380,29 +2380,29 @@ msgstr ""
msgid "error creating temporary file %s" msgid "error creating temporary file %s"
msgstr "" msgstr ""
#: ../lib/oldheader.c:292 #: ../lib/oldheader.c:299
#, c-format #, c-format
msgid "bad file state: %s" msgid "bad file state: %s"
msgstr "" msgstr ""
#: ../lib/package.c:228 #: ../lib/package.c:235
msgid "package is a version one package!\n" msgid "package is a version one package!\n"
msgstr "" msgstr ""
#: ../lib/package.c:233 #: ../lib/package.c:240
msgid "old style source package -- I'll do my best\n" msgid "old style source package -- I'll do my best\n"
msgstr "" msgstr ""
#: ../lib/package.c:236 #: ../lib/package.c:243
#, c-format #, c-format
msgid "archive offset is %d\n" msgid "archive offset is %d\n"
msgstr "" msgstr ""
#: ../lib/package.c:246 #: ../lib/package.c:253
msgid "old style binary package\n" msgid "old style binary package\n"
msgstr "" msgstr ""
#: ../lib/package.c:290 #: ../lib/package.c:297
msgid "" msgid ""
"only packages with major numbers <= 3 are supported by this version of RPM" "only packages with major numbers <= 3 are supported by this version of RPM"
msgstr "" msgstr ""
@ -2807,7 +2807,7 @@ msgstr ""
msgid "opening database mode 0x%x in %s\n" msgid "opening database mode 0x%x in %s\n"
msgstr "" msgstr ""
#: ../lib/rpmdb.c:173 ../lib/url.c:421 #: ../lib/rpmdb.c:173 ../lib/url.c:428
#, c-format #, c-format
msgid "failed to open %s\n" msgid "failed to open %s\n"
msgstr "" msgstr ""
@ -2999,7 +2999,7 @@ msgstr ""
msgid "Installing %s\n" msgid "Installing %s\n"
msgstr "" msgstr ""
#: ../lib/rpmlead.c:41 #: ../lib/rpmlead.c:48
#, c-format #, c-format
msgid "read failed: %s (%d)" msgid "read failed: %s (%d)"
msgstr "" msgstr ""
@ -3273,27 +3273,27 @@ msgstr ""
msgid "execution of script failed" msgid "execution of script failed"
msgstr "" msgstr ""
#: ../lib/url.c:135 #: ../lib/url.c:142
#, c-format #, c-format
msgid "Password for %s@%s: " msgid "Password for %s@%s: "
msgstr "" msgstr ""
#: ../lib/url.c:159 ../lib/url.c:185 #: ../lib/url.c:166 ../lib/url.c:192
#, c-format #, c-format
msgid "error: %sport must be a number\n" msgid "error: %sport must be a number\n"
msgstr "" msgstr ""
#: ../lib/url.c:270 #: ../lib/url.c:277
msgid "url port must be a number\n" msgid "url port must be a number\n"
msgstr "" msgstr ""
#. XXX PARANOIA #. XXX PARANOIA
#: ../lib/url.c:307 #: ../lib/url.c:314
#, c-format #, c-format
msgid "logging into %s as %s, pw %s\n" msgid "logging into %s as %s, pw %s\n"
msgstr "" msgstr ""
#: ../lib/url.c:436 #: ../lib/url.c:443
#, c-format #, c-format
msgid "failed to create %s\n" msgid "failed to create %s\n"
msgstr "" msgstr ""

View File

@ -195,7 +195,9 @@ char *alloca ();
#endif #endif
#if HAVE_NETDB_H #if HAVE_NETDB_H
#ifndef __LCLINT__
#include <netdb.h> #include <netdb.h>
#endif /* __LCLINT__ */
#endif #endif
#if HAVE_PWD_H #if HAVE_PWD_H
@ -265,7 +267,9 @@ extern void *myrealloc(void *, size_t);
#if HAVE_SYS_SOCKET_H #if HAVE_SYS_SOCKET_H
#include <sys/types.h> #include <sys/types.h>
#ifndef __LCLINT__
#include <sys/socket.h> #include <sys/socket.h>
#endif /* __LCLINT__ */
#endif #endif
#if HAVE_SYS_SELECT_H #if HAVE_SYS_SELECT_H