volser: Remove ExtractVolId
authorAndrew Deason <adeason@sinenomine.net>
Tue, 11 Oct 2011 15:51:14 +0000 (10:51 -0500)
committerDerrick Brashear <shadow@dementix.org>
Mon, 24 Oct 2011 20:13:14 +0000 (13:13 -0700)
commit87f969f82d12c8200ede3fd30a151e09ab0bf6ad
treebd2c9034dc37bada6137c2d38bd3b03223316492
parentb5a153fb75bb6642490e9856dc6212244a590301
volser: Remove ExtractVolId

volser was using its own function to extract a volume ID from a
filename string, and was using atol to do so. The ato* family of
functions can have problems with larger volume IDs, not to mention a
lack of error checking, so don't use it. Since we already have the
function VolumeNumber in the vol package to do the very same thing,
just use that instead.

Change-Id: I40953d3533454503583685eb3adeb0079137c8a1
Reviewed-on: http://gerrit.openafs.org/5594
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/volser/volprocs.c