summaryrefslogtreecommitdiff
path: root/lib/rpmfi.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-28 23:06:29 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-28 23:06:29 +0300
commitadbd484372cb38aca5aca3c6dba3b2ca9cae93d1 (patch)
tree2a6dc2c0abd87920d7bba76b85cbc90e5bec78b7 /lib/rpmfi.h
parentac1e1ff57256022b2e4ab091aa5743b92f0a6131 (diff)
downloadrpm-adbd484372cb38aca5aca3c6dba3b2ca9cae93d1.tar.gz
rpm-adbd484372cb38aca5aca3c6dba3b2ca9cae93d1.tar.bz2
rpm-adbd484372cb38aca5aca3c6dba3b2ca9cae93d1.zip
Make RPMFILE_STATE_MISSING part of the rpmfileState enum
- 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...
Diffstat (limited to 'lib/rpmfi.h')
-rw-r--r--lib/rpmfi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmfi.h b/lib/rpmfi.h
index 75dfd1ef7..e7607c613 100644
--- a/lib/rpmfi.h
+++ b/lib/rpmfi.h
@@ -35,13 +35,13 @@ typedef enum rpmFileTypes_e {
* 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.