vol: Don't assume enum is an int
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 15 Feb 2013 17:22:02 +0000 (17:22 +0000)
committerDerrick Brashear <shadow@your-file-system.com>
Wed, 20 Feb 2013 18:23:10 +0000 (10:23 -0800)
commit304fac42b8cd4a71d0df063cafe88b2888e4d175
tree67d3fd5732178c1ea3942acb19f464ff633ffda5
parent1c3492149153ca82b18a36402f7f196f97a8512e
vol: Don't assume enum is an int

The type that an enum is promoted to for arithmetic is compiler
dependent. We can't assume that it's an int, or a short.

Explicitly cast the volume state enum where clang gets upset.

Change-Id: Iab285d3a04dac698797ab0df2337aee75e3876b2
Reviewed-on: http://gerrit.openafs.org/9137
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/vol/vnode_inline.h
src/vol/volume.c
src/vol/volume_inline.h