diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-07-12 09:26:25 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-07-12 09:26:25 +0200 |
commit | fb4bfc2ad5a3492d72a612e16fd4b69eb01f96e3 (patch) | |
tree | d6b024fccc26c866a31c20ca46d84961d9e5146f /include | |
parent | e62651f22064ac44930ec91eda7f74b1014b420f (diff) |
logging: Fix compile breakage introduced by the warning fixes
Make sure the declaration and definition match, add const to
the functions called by logp/logp2.
Compile output:
logging.c:317: error: conflicting types for 'logp'
../include/osmocom/core/logging.h:34: note: previous declaration of 'logp' was here
logging.c:327: error: conflicting types for 'logp2'
../include/osmocom/core/logging.h:168: note: previous declaration of 'logp2' was here
make[3]: *** [logging.lo] Error 1
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/core/logging.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h index bbaef45d..989228b9 100644 --- a/include/osmocom/core/logging.h +++ b/include/osmocom/core/logging.h @@ -28,7 +28,7 @@ #endif -void osmo_vlogp(int subsys, int level, char *file, int line, +void osmo_vlogp(int subsys, int level, const char *file, int line, int cont, const char *format, va_list ap); void logp(int subsys, const char *file, int line, int cont, const char *format, ...) __attribute__ ((format (printf, 5, 6))); |