Fclose(fd);
return NULL;
}
- /*@-refcounttrans@*/ return fd /*@=refcounttrans@*/ ;
+ return fd ;
}
static int fadNextOffset(FD_t fd, unsigned int lastOffset)
nitems = 0;
}
-static int ftsCachePrint(/*@unused@*/ rpmts ts, FILE * fp)
+static int ftsCachePrint(rpmts ts, FILE * fp)
{
int rc = 0;
int i;
/**
*/
-static int archOkay(/*@null@*/ const char * pkgArch)
- /*@*/
+static int archOkay(const char * pkgArch)
{
if (pkgArch == NULL) return 0;
return (rpmMachineScore(RPM_MACHTABLE_INSTARCH, pkgArch) ? 1 : 0);
/**
*/
-static int osOkay(/*@null@*/ const char * pkgOs)
- /*@*/
+static int osOkay(const char * pkgOs)
{
if (pkgOs == NULL) return 0;
return (rpmMachineScore(RPM_MACHTABLE_INSTOS, pkgOs) ? 1 : 0);
* @param ts transaction set
* @param argv package names to match
*/
-static void initGlobs(/*@unused@*/ rpmts ts, const char ** argv)
+static void initGlobs(rpmts ts, const char ** argv)
{
char buf[BUFSIZ];
int i;
#include "debug.h"
-/*@unchecked@*/
char *progname;
-/*@unchecked@*/
static int print_provides;
-/*@unchecked@*/
static int print_requires;
static void rpmdsPrint(const char * msg, rpmds ds, FILE * fp)
int xx;
char buf[BUFSIZ];
-/*@-modobserver@*/
if ((progname = strrchr(argv[0], '/')) != NULL)
progname++;
else
progname = argv[0];
-/*@=modobserver@*/
optCon = rpmcliInit(argc, argv, optionsTable);
if (optCon == NULL)
static rpmVSFlags vsflags = 0;
-static inline /*@observer@*/ const char * identifyDepend(int_32 f)
- /*@*/
+static inline const char * identifyDepend(int_32 f)
{
if (isLegacyPreReq(f))
return "PreReq:";
static int
rpmGraph(rpmts ts, struct rpmInstallArguments_s * ia, const char ** fileArgv)
- /*@*/
{
rpmps ps;
const char ** pkgURL = NULL;
default:
rpmMessage(RPMMESS_ERROR, _("%s cannot be installed\n"), *fnp);
numFailed++; *fnp = NULL;
- /*@switchbreak@*/ break;
+ break;
case RPMRC_OK:
rc = rpmtsAddInstallElement(ts, h, (fnpyKey)fileName, 0, NULL);
- /*@switchbreak@*/ break;
+ break;
case RPMRC_NOTFOUND:
goto maybe_manifest;
- /*@notreached@*/ /*@switchbreak@*/ break;
+ break;
}
h = headerFree(h);
continue;
rpmpsPrint(NULL, ps);
numFailed += numPkgs;
- /*@-branchstate@*/
if (ts->suggests != NULL && ts->nsuggests > 0) {
rpmMessage(RPMMESS_NORMAL, _(" Suggested resolutions:\n"));
for (i = 0; i < ts->nsuggests; i++) {
}
ts->suggests = _free(ts->suggests);
}
- /*@=branchstate@*/
}
ps = rpmpsFree(ps);
}
case INJ_UNKNOWN: return("unknown");
default: return("???");
}
- /*@notreached@*/
}
enum cvtaction {CA_OLD, CA_NEW, CA_OMIT, CA_ERR};
break;
default:
errx(EXIT_FAILURE, _("unknown popt return (%d)"), arg);
- /*@notreached@*/ break;
+ break;
}
if (injmode != lastmode) {
#endif
static int noDeps = 0;
-static inline /*@observer@*/ const char * identifyDepend(int_32 f)
- /*@*/
+static inline const char * identifyDepend(int_32 f)
{
if (isLegacyPreReq(f))
return "PreReq:";
default:
fprintf(stderr, _("unknown popt return (%d)"), arg);
exit(EXIT_FAILURE);
- /*@notreached@*/ break;
+ break;
}
}