partutil: Explicitly use PART_TYPE_UNKNOWN
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 21 Oct 2010 07:33:00 +0000 (09:33 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 21 Oct 2010 07:33:00 +0000 (09:33 +0200)
commit5d07c97811138fa1542dd09f3178dad812b81a23
treebc194a3acd5cacbea0bc0902f7b7036fcdb7bba0
parent0b4189b6d34d9ad1318381410e0d27edd10b7c62
partutil: Explicitly use PART_TYPE_UNKNOWN

Previously we were comparing PartitionScheme values against the undefined enum
value -1, which causes a warning with gcc 4.5. Define -1 explicitly as
"PART_TYPE_UNKNOWN" and only use that in the code, which is cleaner.

Thanks to Marti Raudsepp for pointing this out!
src/helpers/partutil.c
src/helpers/partutil.h