]> git.michaelhowe.org Git - packages/o/openafs.git/commit
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>
Tue, 26 Apr 2011 14:37:46 +0000 (07:37 -0700)
commit5c2288d5eb46350bb7635e87d3ace8c7562b5148
tree0489e3f2e4a7ccfaa4bc091829a9cabf68443b43
parentac0797822c976b2b3c239ffcbcd7713897743eaa
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

(cherry picked from commit 5b9d427141f0a6fd0e83de9564e70ef2cfebf656)

Change-Id: Icae627318cd523fa225beb8b53449f61532c4a90
Reviewed-on: http://gerrit.openafs.org/4531
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