Browse Source

Fix -Wtautological-constant-out-of-range-compare

ppa-0.6.1
Lucas Betschart 8 years ago
parent
commit
900ab78d46
  1. 2
      daemon/log.c
  2. 2
      daemon/log.h

2
daemon/log.c

@ -382,7 +382,7 @@ void log_struct_(struct log *log, int level,
tal_free(ctx); tal_free(ctx);
} }
void log_blob_(struct log *log, enum log_level level, const char *fmt, void log_blob_(struct log *log, int level, const char *fmt,
size_t len, ...) size_t len, ...)
{ {
va_list ap; va_list ap;

2
daemon/log.h

@ -42,7 +42,7 @@ void log_(struct log *log, enum log_level level, const char *fmt, ...)
void log_add(struct log *log, const char *fmt, ...) PRINTF_FMT(2,3); void log_add(struct log *log, const char *fmt, ...) PRINTF_FMT(2,3);
void logv(struct log *log, enum log_level level, const char *fmt, va_list ap); void logv(struct log *log, enum log_level level, const char *fmt, va_list ap);
void log_blob_(struct log *log, enum log_level level, const char *fmt, void log_blob_(struct log *log, int level, const char *fmt,
size_t len, ...) size_t len, ...)
PRINTF_FMT(3,5); PRINTF_FMT(3,5);

Loading…
Cancel
Save