summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-06-08 01:06:04 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-06-08 01:31:26 +0200
commitf079af0c0f59f00c79808cca931425e848d43efa (patch)
tree5ee8e3189d3e689956777c977ca1e075ea272e40
parent001a25a187939970830264fd9da30c087c7e9269 (diff)
ax25rtd: Fix signedness compiler warnings.
Making all in ax25rtd make[2]: Entering directory '/home/ralf/src/ax25/ax25-apps/ax25rtd' [...] gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25"\" -g -O2 -Wall -MT cache_ctl.o -MD -MP -MF .deps/cache_ctl.Tpo -c -o cache_ctl.o cache_ctl.c cache_ctl.c: In function ‘update_ip_route’: cache_ctl.c:53:7: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ In file included from cache_ctl.c:21:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ cache_ctl.c:53:7: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ cache_ctl.c:53:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ cache_ctl.c:53:7: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ In file included from cache_ctl.c:21:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ cache_ctl.c:53:7: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ cache_ctl.c:53:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ cache_ctl.c:53:7: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ cache_ctl.c:53:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ cache_ctl.c:53:7: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ cache_ctl.c:53:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ cache_ctl.c:55:12: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(bp->iface, iface); ^ In file included from cache_ctl.c:21:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ cache_ctl.c:109:9: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(bp->iface, iface); ^ In file included from cache_ctl.c:21:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ cache_ctl.c: In function ‘update_ax25_route’: cache_ctl.c:133:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *iface = config->dev; ^ cache_ctl.c:141:7: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ In file included from cache_ctl.c:21:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ cache_ctl.c:141:7: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ In file included from cache_ctl.c:21:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ cache_ctl.c:141:7: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ cache_ctl.c:141:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ cache_ctl.c:141:7: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ cache_ctl.c:141:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ cache_ctl.c:141:7: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ In file included from cache_ctl.c:21:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ cache_ctl.c:141:7: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ cache_ctl.c:141:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ cache_ctl.c:141:7: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ cache_ctl.c:141:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ cache_ctl.c:141:7: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ In file included from cache_ctl.c:21:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ cache_ctl.c:141:7: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ cache_ctl.c:141:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ cache_ctl.c:141:7: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ cache_ctl.c:141:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ cache_ctl.c:141:7: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ cache_ctl.c:141:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ cache_ctl.c:141:7: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign] if (strcmp(bp->iface, iface)) { ^ cache_ctl.c:141:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ cache_ctl.c:142:27: warning: pointer targets in passing argument 1 of ‘del_kernel_ax25_route’ differ in signedness [-Wpointer-sign] del_kernel_ax25_route(bp->iface, ^ In file included from cache_ctl.c:28:0: ax25rtd.h:140:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int del_kernel_ax25_route(char *dev, ax25_address *call); ^ cache_ctl.c:145:12: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(bp->iface, iface); ^ In file included from cache_ctl.c:21:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ cache_ctl.c:145:23: warning: pointer targets in passing argument 2 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(bp->iface, iface); ^ In file included from cache_ctl.c:21:0: /usr/include/string.h:129:14: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ cache_ctl.c:197:9: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(bp->iface, iface); ^ In file included from cache_ctl.c:21:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ cache_ctl.c:197:20: warning: pointer targets in passing argument 2 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(bp->iface, iface); ^ In file included from cache_ctl.c:21:0: /usr/include/string.h:129:14: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ cache_ctl.c: In function ‘remove_ip_route’: cache_ctl.c:231:22: warning: pointer targets in passing argument 1 of ‘del_kernel_ip_route’ differ in signedness [-Wpointer-sign] del_kernel_ip_route(bp->iface, bp->ip); ^ In file included from cache_ctl.c:28:0: ax25rtd.h:139:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int del_kernel_ip_route(char *dev, long ip); ^ cache_ctl.c: In function ‘remove_ax25_route’: cache_ctl.c:255:24: warning: pointer targets in passing argument 1 of ‘del_kernel_ax25_route’ differ in signedness [-Wpointer-sign] del_kernel_ax25_route(bp->iface, &bp->call); ^ In file included from cache_ctl.c:28:0: ax25rtd.h:140:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int del_kernel_ax25_route(char *dev, ax25_address *call); ^ cache_ctl.c: In function ‘del_ax25_route’: cache_ctl.c:297:10: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] && !strcmp(config->dev, bp->iface)) { ^ In file included from cache_ctl.c:21:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ cache_ctl.c:297:10: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign] && !strcmp(config->dev, bp->iface)) { ^ cache_ctl.c:297:10: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ cache_ctl.c:297:10: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign] && !strcmp(config->dev, bp->iface)) { ^ cache_ctl.c:297:10: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ cache_ctl.c:297:10: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] && !strcmp(config->dev, bp->iface)) { ^ In file included from cache_ctl.c:21:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ cache_ctl.c:297:10: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign] && !strcmp(config->dev, bp->iface)) { ^ cache_ctl.c:297:10: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ cache_ctl.c:297:10: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign] && !strcmp(config->dev, bp->iface)) { ^ cache_ctl.c:297:10: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ [...] gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25"\" -g -O2 -Wall -MT cache_dump.o -MD -MP -MF .deps/cache_dump.Tpo -c -o cache_dump.o cache_dump.c cache_dump.c: In function ‘dump_ip_routes’: cache_dump.c:48:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dev = bp->iface; ^ cache_dump.c:51:28: warning: pointer targets in passing argument 1 of ‘dev_get_config’ differ in signedness [-Wpointer-sign] config = dev_get_config(bp->iface); ^ In file included from cache_dump.c:33:0: ax25rtd.h:147:10: note: expected ‘char *’ but argument is of type ‘unsigned char *’ config * dev_get_config(char *dev); ^ cache_dump.c:55:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dev = bp->iface; ^ cache_dump.c: In function ‘dump_ax25_routes’: cache_dump.c:92:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dev = bp->iface; ^ cache_dump.c:95:28: warning: pointer targets in passing argument 1 of ‘dev_get_config’ differ in signedness [-Wpointer-sign] config = dev_get_config(bp->iface); ^ In file included from cache_dump.c:33:0: ax25rtd.h:147:10: note: expected ‘char *’ but argument is of type ‘unsigned char *’ config * dev_get_config(char *dev); ^ cache_dump.c:99:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dev = bp->iface; ^ [...] gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25"\" -g -O2 -Wall -MT config.o -MD -MP -MF .deps/config.Tpo -c -o config.o config.c config.c: In function ‘interpret_command’: config.c:554:22: warning: pointer targets in passing argument 1 of ‘prepare_cmdline’ differ in signedness [-Wpointer-sign] p = prepare_cmdline(buf); ^ config.c:68:7: note: expected ‘char *’ but argument is of type ‘unsigned char *’ char *prepare_cmdline(char *buf) ^ config.c: In function ‘load_cache’: config.c:687:25: warning: pointer targets in passing argument 2 of ‘interpret_command’ differ in signedness [-Wpointer-sign] interpret_command(2, buf); ^ config.c:544:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’ void interpret_command(int fd, unsigned char *buf) ^ config.c:695:25: warning: pointer targets in passing argument 2 of ‘interpret_command’ differ in signedness [-Wpointer-sign] interpret_command(2, buf); ^ config.c:544:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’ void interpret_command(int fd, unsigned char *buf) ^ [...] gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25"\" -g -O2 -Wall -MT ax25rtctl.o -MD -MP -MF .deps/ax25rtctl.Tpo -c -o ax25rtctl.o ax25rtctl.c ax25rtctl.c: In function ‘main’: ax25rtctl.c:320:18: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] len = sprintf(buf, "add ax25"); ^ In file included from ax25rtctl.c:20:0: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern int sprintf (char *__restrict __s, ^ ax25rtctl.c:322:20: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] len += sprintf(buf + len, " %s", argv[k]); ^ In file included from ax25rtctl.c:20:0: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern int sprintf (char *__restrict __s, ^ ax25rtctl.c:323:12: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(buf + len, "\n"); ^ In file included from ax25rtctl.c:20:0: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern int sprintf (char *__restrict __s, ^ ax25rtctl.c:326:16: warning: pointer targets in passing argument 2 of ‘wsock’ differ in signedness [-Wpointer-sign] wsock(sock, buf); ^ ax25rtctl.c:95:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’ static int wsock(int sock, char *s) ^ ax25rtctl.c:332:18: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] len = sprintf(buf, "add ip"); ^ In file included from ax25rtctl.c:20:0: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern int sprintf (char *__restrict __s, ^ ax25rtctl.c:334:20: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] len += sprintf(buf + len, " %s", argv[k]); ^ In file included from ax25rtctl.c:20:0: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern int sprintf (char *__restrict __s, ^ ax25rtctl.c:335:12: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(buf + len, "\n"); ^ In file included from ax25rtctl.c:20:0: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern int sprintf (char *__restrict __s, ^ ax25rtctl.c:338:16: warning: pointer targets in passing argument 2 of ‘wsock’ differ in signedness [-Wpointer-sign] wsock(sock, buf); ^ ax25rtctl.c:95:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’ static int wsock(int sock, char *s) ^ ax25rtctl.c:348:12: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(buf, "del ax25 %s %s\n", argv[optind], ^ In file included from ax25rtctl.c:20:0: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern int sprintf (char *__restrict __s, ^ ax25rtctl.c:352:16: warning: pointer targets in passing argument 2 of ‘wsock’ differ in signedness [-Wpointer-sign] wsock(sock, buf); ^ ax25rtctl.c:95:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’ static int wsock(int sock, char *s) ^ ax25rtctl.c:358:12: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(buf, "del ip %s\n", argv[optind]); ^ In file included from ax25rtctl.c:20:0: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern int sprintf (char *__restrict __s, ^ ax25rtctl.c:361:16: warning: pointer targets in passing argument 2 of ‘wsock’ differ in signedness [-Wpointer-sign] wsock(sock, buf); ^ ax25rtctl.c:95:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’ static int wsock(int sock, char *s) ^ ax25rtctl.c:379:11: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(buf, "expire %ld\n", when); ^ In file included from ax25rtctl.c:20:0: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern int sprintf (char *__restrict __s, ^ ax25rtctl.c:380:15: warning: pointer targets in passing argument 2 of ‘wsock’ differ in signedness [-Wpointer-sign] wsock(sock, buf); ^ ax25rtctl.c:95:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’ static int wsock(int sock, char *s) ^ [...] make[2]: Leaving directory '/home/ralf/src/ax25/ax25-apps/ax25rtd' Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--ax25rtd/ax25rtctl.c2
-rw-r--r--ax25rtd/ax25rtd.c2
-rw-r--r--ax25rtd/ax25rtd.h6
-rw-r--r--ax25rtd/cache_ctl.c2
-rw-r--r--ax25rtd/config.c2
5 files changed, 7 insertions, 7 deletions
diff --git a/ax25rtd/ax25rtctl.c b/ax25rtd/ax25rtctl.c
index 60cca95..d54e235 100644
--- a/ax25rtd/ax25rtctl.c
+++ b/ax25rtd/ax25rtctl.c
@@ -306,8 +306,8 @@ static void debug(void)
int main(int argc, char **argv)
{
int sock, cmd, k, len;
- unsigned char buf[256];
int opt_ind = 0;
+ char buf[256];
long when;
cmd = getopt_long(argc, argv, sopts, lopts, &opt_ind);
diff --git a/ax25rtd/ax25rtd.c b/ax25rtd/ax25rtd.c
index 5b40228..b0b288c 100644
--- a/ax25rtd/ax25rtd.c
+++ b/ax25rtd/ax25rtd.c
@@ -126,7 +126,7 @@ void daemon_shutdown(int reason)
int main(int argc, char **argv)
{
- unsigned char buf[256];
+ char buf[256];
int size, s, cntrl_s, cntrl_fd;
socklen_t cntrl_len;
struct sockaddr_un cntrl_addr;
diff --git a/ax25rtd/ax25rtd.h b/ax25rtd/ax25rtd.h
index 4f09aae..18ab421 100644
--- a/ax25rtd/ax25rtd.h
+++ b/ax25rtd/ax25rtd.h
@@ -56,7 +56,7 @@
typedef struct ip_rt_entry_ {
struct ip_rt_entry_ *next, *prev;
unsigned long ip;
- unsigned char iface[14];
+ char iface[14];
ax25_address call;
char ipmode;
time_t timestamp;
@@ -65,7 +65,7 @@ typedef struct ip_rt_entry_ {
typedef struct ax25_rt_entry_ {
struct ax25_rt_entry_ *next, *prev;
- unsigned char iface[14];
+ char iface[14];
ax25_address call;
ax25_address digipeater[AX25_MAX_DIGIS];
int ndigi;
@@ -127,7 +127,7 @@ void load_config(void);
void reload_config(void);
void load_cache(void);
void save_cache(void);
-void interpret_command(int fd, unsigned char *buf);
+void interpret_command(int fd, char *buf);
/* listener.c */
diff --git a/ax25rtd/cache_ctl.c b/ax25rtd/cache_ctl.c
index 0a80387..444fc08 100644
--- a/ax25rtd/cache_ctl.c
+++ b/ax25rtd/cache_ctl.c
@@ -130,7 +130,7 @@ ax25_rt_entry *update_ax25_route(config * config, ax25_address * call,
{
ax25_rt_entry *bp = ax25_routes;
ax25_rt_entry *bp_prev = ax25_routes;
- unsigned char *iface = config->dev;
+ char *iface = config->dev;
int action = 0;
while (bp) {
diff --git a/ax25rtd/config.c b/ax25rtd/config.c
index e328f56..c85b2b2 100644
--- a/ax25rtd/config.c
+++ b/ax25rtd/config.c
@@ -541,7 +541,7 @@ void reload_config(void)
*/
-void interpret_command(int fd, unsigned char *buf)
+void interpret_command(int fd, char *buf)
{
char *p, *cmd, *arg, *arg2, *dev, *time;
ax25_address digipeater[AX25_MAX_DIGIS];