Skip to content

Commit 0746797

Browse files
committed
Fix compilation: conflicting types for ‘netlog_gperf_lookup’
``` gperf < src/netlog-gperf.gperf > src/netlog-gperf.c CC src/netlog-gperf.o src/netlog-gperf.c:34:1: error: conflicting types for ‘netlog_gperf_lookup’ netlog_gperf_lookup (register const char *str, register size_t len) ^~~~~~~~~~~~~~~~~~~ In file included from src/netlog-gperf.c:8:0: src/netlog-conf.h:28:30: note: previous declaration of ‘netlog_gperf_lookup’ was here const struct ConfigPerfItem* netlog_gperf_lookup(const char *key, unsigned length); ^~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:932: src/netlog-gperf.o] Error 1 ```
1 parent 3fbf411 commit 0746797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/netlog-conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "conf-parser.h"
2626
#include "netlog-manager.h"
2727

28-
const struct ConfigPerfItem* netlog_gperf_lookup(const char *key, unsigned length);
28+
const struct ConfigPerfItem* netlog_gperf_lookup(const char *key, size_t length);
2929
int config_parse_netlog_remote_address(const char *unit,
3030
const char *filename,
3131
unsigned line,

0 commit comments

Comments
 (0)