]> git.michaelhowe.org Git - packages/o/openafs.git/commit
butc: Set but unused variables
authorMarc Dionne <marc.c.dionne@gmail.com>
Sat, 11 Sep 2010 17:23:11 +0000 (13:23 -0400)
committerDerrick Brashear <shadow@dementia.org>
Mon, 27 Sep 2010 15:28:01 +0000 (08:28 -0700)
commit33139547312eb8e70650ba02034fc21d52e53ab2
treec7aa0b460ba7b98d750f123b9988588d73b5a387
parentbfd269535f032dce04c0769ac2ca97ca3753fcf9
butc: Set but unused variables

Remove unused variable taskId

writeData() systematically returns 0, so make it void and adapt
call sites that assigned the return value but never used it.
Also move the function up in the file to avoid the need for a
forward declaration, and make it static since it's only used here.

Spotted by gcc 4.6

Change-Id: I2f61c0395796498175f2cb9131066b00657f99a7
Reviewed-on: http://gerrit.openafs.org/2785
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit f1796b0f4ad0202ad32e06bb849f443984cf22b5)
Reviewed-on: http://gerrit.openafs.org/2798
Tested-by: Derrick Brashear <shadow@dementia.org>
src/butc/read_tape.c
src/butc/tcudbprocs.c