volser: Don't initialise all error tables
authorSimon Wilkinson <sxw@your-file-system.com>
Sun, 10 Jul 2011 12:57:36 +0000 (13:57 +0100)
committerDerrick Brashear <shadow@dementix.org>
Thu, 8 Sep 2011 15:28:34 +0000 (08:28 -0700)
Initialising the KA and cmd error tables in vsprocs.c makes the
libvolser library dependent upon rxkad and cmd. As we may want to
use that library in programs which use neither rxkad, nor our command
processor, this is less than ideal. So, just drop the initialisations.

Change-Id: Ifd47b1b16fc014f969e2b487451e21877b6a5407
Reviewed-on: http://gerrit.openafs.org/5374
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>

src/volser/vsprocs.c

index 3c126ee..b320759 100644 (file)
@@ -386,11 +386,9 @@ PrintError(char *msg, afs_int32 errcode)
        break;
     default:
        {
-           initialize_KA_error_table();
            initialize_RXK_error_table();
            initialize_KTC_error_table();
            initialize_ACFG_error_table();
-           initialize_CMD_error_table();
            initialize_VL_error_table();
 
            fprintf(STDERR, "%s: %s\n", afs_error_table_name(errcode),