dmg: use enumeration type instead of hard coding number
authoryuchenlin <npes87184@gmail.com>
Thu, 3 Jan 2019 11:46:59 +0000 (19:46 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 4 Jan 2019 11:15:09 +0000 (11:15 +0000)
commite80fcf590e5612c901f7f16b6907ece18e7933df
treed0c18b6ea524641bd93252f34790d01132a246d3
parent5ef40828baafc27dc3e52320c3125f2bd3f44886
dmg: use enumeration type instead of hard coding number

Signed-off-by: yuchenlin <npes87184@gmail.com>
Reviewed-by: Julio Faracco <jcfaracco@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20190103114700.9686-3-npes87184@gmail.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/dmg.c