diff options
author | Joel Sherrill <joel@rtems.org> | 2018-08-29 12:34:58 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2018-08-29 12:52:10 -0500 |
commit | 350b07a0361b13537a91a27be5e05194cf87d2ea (patch) | |
tree | e82978f23064d8ac10a325b62787f1fc9a6f25a8 /bsps/include/umon/monlib.h | |
parent | qoriq/include/tm27.h: Fix warnings (diff) | |
download | rtems-350b07a0361b13537a91a27be5e05194cf87d2ea.tar.bz2 |
monlib.[ch]: Fix warnings for external vs internal use of .h
Diffstat (limited to '')
-rw-r--r-- | bsps/include/umon/monlib.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bsps/include/umon/monlib.h b/bsps/include/umon/monlib.h index efbfc93d59..c26350f70b 100644 --- a/bsps/include/umon/monlib.h +++ b/bsps/include/umon/monlib.h @@ -148,16 +148,16 @@ extern unsigned long mon_assignhandler(long hnum, extern struct tfshdr *mon_tfsnext(struct tfshdr *tfp); extern struct tfshdr *mon_tfsstat(char *filename); -#if SHOWVARARGS +/* + * The external caller should see these as variable argument methods but + * they are not implemented that way, so let monlib.c prototype them internally + * when building that file. + */ +#ifndef _INSIDE_MONLIB extern void mon_memtrace(char *fmt, ...); extern int mon_printf(char *fmt, ...); extern int mon_cprintf(char *fmt, ...); extern int mon_sprintf(char *,char *fmt, ...); -#else -extern void mon_memtrace(); -extern int mon_printf(); -extern int mon_cprintf(); -extern int mon_sprintf(); #endif #ifdef __cplusplus |