mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
crypto: Avoid variadic macros
The IRIX compiler doesn't seem to like variadic macros, so avoid using them within the RFC3961 kernel crypto implementation Change-Id: I4bfddb01eb86a96e981c148e26281cc73130f924 Reviewed-on: http://gerrit.openafs.org/4154 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
parent
ad63745f35
commit
2a17517ee7
@ -6,3 +6,16 @@ int
|
||||
krb5_init_context(krb5_context *ctx) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
krb5_set_error_message(krb5_context ctx, krb5_error_code ret, const char *fmt,
|
||||
...)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_abortx(krb5_context ctx, const char *fmt, ...)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -130,9 +130,13 @@ typedef struct krb5_crypto_iov {
|
||||
|
||||
/* Currently, we just disable localised error strings. We'll get the error
|
||||
* numbers out, but no meaningful text */
|
||||
#define N_(...) ""
|
||||
#define krb5_set_error_message(...)
|
||||
#define krb5_abortx(...)
|
||||
#define N_(X, Y) X
|
||||
|
||||
/* These have to be real functions, because IRIX doesn't seem to support
|
||||
* variadic macros */
|
||||
void krb5_set_error_message(krb5_context, krb5_error_code, const char *, ...);
|
||||
krb5_error_code krb5_abortx(krb5_context, const char *, ...);
|
||||
|
||||
#define krb5_clear_error_message(ctx)
|
||||
|
||||
/* Local prototypes. These are functions that we aren't admitting to in the
|
||||
|
Loading…
x
Reference in New Issue
Block a user