viced: Fix host enumeration flags
authorAndrew Deason <adeason@sinenomine.net>
Sat, 23 Apr 2011 21:25:00 +0000 (16:25 -0500)
committerDerrick Brashear <shadow@dementia.org>
Mon, 25 Apr 2011 20:38:28 +0000 (13:38 -0700)
commit5b9d427141f0a6fd0e83de9564e70ef2cfebf656
tree719d4af5cb48544648413714eeec3a151eebd46a
parentebf5329e8ca1b3c0b581f436b28f6affe2c7c454
viced: Fix host enumeration flags

Do not give uninitialized flags values to h_Enumerate callback
functions. In fact, do not give a flags value to h_Enumerate or
h_Enumerate_r callback functions at all, since they are not actually
used.

Fix host enumeration callback functions to just return 0 or the
relevant flags, instead of basing the return value off of the given
flags value. Update MultiBreakVolumeCallBack_r to use the correct
return values, since it currently tries to use the old meanings of the
host enumeration return values.

FIXES 129376

Change-Id: Ibb01ce62411602a9f83f437125fb87a7a84160b4
Reviewed-on: http://gerrit.openafs.org/4527
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/viced/callback.c
src/viced/host.c
src/viced/host.h