diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-28 23:06:29 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-28 23:06:29 +0300 |
commit | adbd484372cb38aca5aca3c6dba3b2ca9cae93d1 (patch) | |
tree | 2a6dc2c0abd87920d7bba76b85cbc90e5bec78b7 /lib/rpmfi.h | |
parent | ac1e1ff57256022b2e4ab091aa5743b92f0a6131 (diff) | |
download | rpm-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.h | 2 |
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. |