Creating log_internal.h for log_*put_internal() prototypes

Fixed warning "no previous prototype for function" in log_posix.c
This commit is contained in:
Philippe Teuwen 2013-03-09 00:59:29 +01:00
parent 7e26aa368d
commit 6a110b3849
4 changed files with 6 additions and 13 deletions

View file

@ -73,11 +73,8 @@ log_priority_to_str(const int priority)
#ifdef LOG
// Internal methods so different platforms can route the logging
// Offering both forms of the variadic function
// These are implemented in the log_<platform> specific file
void log_put_internal(const char *format, ...);
void log_vput_internal(const char *format, va_list args);
#include "log_internal.h"
void
log_init(const nfc_context *context)

View file

@ -70,6 +70,8 @@ void log_put(const uint8_t group, const char *category, const uint8_t priority,
__attribute__((format(printf, 4, 5)))
# endif
;
void log_put_internal(const char *format, ...);
void log_vput_internal(const char *format, va_list args);
#else
// No logging

View file

@ -17,11 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/
#include "log.h"
#include "log_internal.h"
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdarg.h>

View file

@ -17,11 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/
#include "log.h"
#include "log_internal.h"
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdarg.h>
#include <strsafe.h>