]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
cmd: Don't expose krb5 error codes
authorSimon Wilkinson <sxw@your-file-system.com>
Sun, 9 Oct 2011 00:17:19 +0000 (01:17 +0100)
committerDerrick Brashear <shadow@dementix.org>
Fri, 11 May 2012 23:39:52 +0000 (16:39 -0700)
Don't use krb5 error codes in our configuration parser, instead use an
error allocated from the existing cmd error table

Change-Id: I777d9638c676d198d13a3bd33a90acdc53dc26cc
Reviewed-on: http://gerrit.openafs.org/7134
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/cmd/cmd_errors.et
src/cmd/krb5_locl.h

index fd8453b92c4eec16e0351f94395bd931de18fb79..dbc75e4037a0ca99421f53c7c9815a38bb4521bd 100644 (file)
@@ -19,4 +19,5 @@ error_table CMD
   ec CMD_TOOFEW, "Insufficient required parameters provided"
   ec CMD_TOOBIG, "Token too large"
   ec CMD_MISSING, "Option not specified on command line"
+  ec CMD_BADFORMAT, "Improper format of configuration file"
 end
index 9b5b095bbdf1bb7d28437274334c10b61e6569eb..bbb1798138ec7cd21f7512974df6b8ea7e0cfa9b 100644 (file)
@@ -37,8 +37,7 @@
 
 #define KRB5_DEPRECATED_FUNCTION(x)
 
-/* This value shouldn't be hard coded */
-#define KRB5_CONFIG_BADFORMAT                    (-1765328248L)
+#define KRB5_CONFIG_BADFORMAT                    CMD_BADFORMAT
 
 #define N_(X,Y) X