diff options
author | des <des@FreeBSD.org> | 2003-05-12 19:22:47 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-05-12 19:22:47 +0000 |
commit | ab070fe74800cccca575f05550828513b6015aa5 (patch) | |
tree | fbafd120b372de9e8cc630e1992851c30913f519 /crypto/openssh | |
parent | b8b7c5f0c7ae14b72795f297b0da57c8df3238d5 (diff) | |
download | FreeBSD-src-ab070fe74800cccca575f05550828513b6015aa5.zip FreeBSD-src-ab070fe74800cccca575f05550828513b6015aa5.tar.gz |
Rename a few functions to avoid stealing common words (error, log, debug
etc.) from the application namespace for programs that use pam_ssh(8).
Use #defines to avoid changing the actual source code.
Approved by: re (rwatson)
Diffstat (limited to 'crypto/openssh')
-rw-r--r-- | crypto/openssh/log.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/crypto/openssh/log.h b/crypto/openssh/log.h index 917fafa..383a1cb 100644 --- a/crypto/openssh/log.h +++ b/crypto/openssh/log.h @@ -1,4 +1,5 @@ /* $OpenBSD: log.h,v 1.8 2002/07/19 15:43:33 markus Exp $ */ +/* $FreeBSD$ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -53,13 +54,21 @@ void log_init(char *, LogLevel, SyslogFacility, int); SyslogFacility log_facility_number(char *); LogLevel log_level_number(char *); -void fatal(const char *, ...) __attribute__((format(printf, 1, 2))); -void error(const char *, ...) __attribute__((format(printf, 1, 2))); -void log(const char *, ...) __attribute__((format(printf, 1, 2))); -void verbose(const char *, ...) __attribute__((format(printf, 1, 2))); -void debug(const char *, ...) __attribute__((format(printf, 1, 2))); -void debug2(const char *, ...) __attribute__((format(printf, 1, 2))); -void debug3(const char *, ...) __attribute__((format(printf, 1, 2))); +#define fatal ssh_fatal +#define error ssh_error +#define log ssh_log +#define verbose ssh_verbose +#define debug ssh_debug +#define debug2 ssh_debug2 +#define debug3 ssh_debug3 + +void ssh_fatal(const char *, ...) __attribute__((format(printf, 1, 2))); +void ssh_error(const char *, ...) __attribute__((format(printf, 1, 2))); +void ssh_log(const char *, ...) __attribute__((format(printf, 1, 2))); +void ssh_verbose(const char *, ...) __attribute__((format(printf, 1, 2))); +void ssh_debug(const char *, ...) __attribute__((format(printf, 1, 2))); +void ssh_debug2(const char *, ...) __attribute__((format(printf, 1, 2))); +void ssh_debug3(const char *, ...) __attribute__((format(printf, 1, 2))); void fatal_cleanup(void); void fatal_add_cleanup(void (*) (void *), void *); |