- Shuts up couple of "not in enum" complaints from gcc, and actually
"no state" is a perfectly valid state for one case: non-installed
packages (so remove the "not valid" comment from formats.c)
- OTOH, this created a new complaint for not handled case in a switch.
Oh well, fix it up too...
case RPMFILE_STATE_WRONGCOLOR:
str = _("wrong color");
break;
- /* XXX headers should never have this value as file state */
case RPMFILE_STATE_MISSING:
str = _("missing");
break;
* File States (when installed).
*/
typedef enum rpmfileState_e {
+ RPMFILE_STATE_MISSING = -1, /* used for unavailable data */
RPMFILE_STATE_NORMAL = 0,
RPMFILE_STATE_REPLACED = 1,
RPMFILE_STATE_NOTINSTALLED = 2,
RPMFILE_STATE_NETSHARED = 3,
RPMFILE_STATE_WRONGCOLOR = 4
} rpmfileState;
-#define RPMFILE_STATE_MISSING -1 /* XXX used for unavailable data */
/**
* File Attributes.
case RPMFILE_STATE_REPLACED:
case RPMFILE_STATE_NOTINSTALLED:
case RPMFILE_STATE_WRONGCOLOR:
+ case RPMFILE_STATE_MISSING:
return 0;
break;
case RPMFILE_STATE_NORMAL: