diff options
Diffstat (limited to 'ax25rtd')
-rw-r--r-- | ax25rtd/ax25rtctl.c | 5 | ||||
-rw-r--r-- | ax25rtd/ax25rtd.c | 4 | ||||
-rw-r--r-- | ax25rtd/ax25rtd.h | 3 | ||||
-rw-r--r-- | ax25rtd/cache_ctl.c | 3 | ||||
-rw-r--r-- | ax25rtd/cache_dump.c | 3 | ||||
-rw-r--r-- | ax25rtd/config.c | 6 | ||||
-rw-r--r-- | ax25rtd/listener.c | 3 |
7 files changed, 9 insertions, 18 deletions
diff --git a/ax25rtd/ax25rtctl.c b/ax25rtd/ax25rtctl.c index ddf5602..95eb822 100644 --- a/ax25rtd/ax25rtctl.c +++ b/ax25rtd/ax25rtctl.c @@ -1,5 +1,4 @@ -/* $Id: ax25rtctl.c,v 1.4 2009/06/27 22:30:23 ralf Exp $ - * +/* * Copyright (c) 1996 Joerg Reuter (jreuter@poboxes.com) * * This program is free software; you can redistribute it and/or modify @@ -251,7 +250,7 @@ static void Version(void) int sock; char buf[256]; - printf("ax25rtctl $Revision: 1.4 $\n"); + printf("ax25rtctl version " VERSION "\n"); sock = open_socket(); wsock(sock, "version\n"); read(sock, buf, sizeof(buf)); diff --git a/ax25rtd/ax25rtd.c b/ax25rtd/ax25rtd.c index e08cb1d..b79a3b3 100644 --- a/ax25rtd/ax25rtd.c +++ b/ax25rtd/ax25rtd.c @@ -1,5 +1,4 @@ -/* $Id: ax25rtd.c,v 1.8 2009/06/27 22:30:23 ralf Exp $ - * +/* * Copyright (c) 1996 Joerg Reuter (jreuter@poboxes.com) * * This program is free software; you can redistribute it and/or modify @@ -58,7 +57,6 @@ #include "../pathnames.h" #include "ax25rtd.h" -const char *Version = "ax25rtd $Revision: 1.8 $"; config *Config = NULL; int reload = 0; diff --git a/ax25rtd/ax25rtd.h b/ax25rtd/ax25rtd.h index 1e94fed..83a1df5 100644 --- a/ax25rtd/ax25rtd.h +++ b/ax25rtd/ax25rtd.h @@ -1,5 +1,4 @@ -/* $Id: ax25rtd.h,v 1.4 2009/06/27 22:30:23 ralf Exp $ - * +/* * Copyright (c) 1996 Joerg Reuter (jreuter@poboxes.com) * * This program is free software; you can redistribute it and/or modify diff --git a/ax25rtd/cache_ctl.c b/ax25rtd/cache_ctl.c index 7e83280..0a80387 100644 --- a/ax25rtd/cache_ctl.c +++ b/ax25rtd/cache_ctl.c @@ -1,5 +1,4 @@ -/* $Id: cache_ctl.c,v 1.4 2009/06/27 22:30:23 ralf Exp $ - * +/* * Copyright (c) 1996 Joerg Reuter (jreuter@poboxes.com) * * This program is free software; you can redistribute it and/or modify diff --git a/ax25rtd/cache_dump.c b/ax25rtd/cache_dump.c index 5ad3f53..38de780 100644 --- a/ax25rtd/cache_dump.c +++ b/ax25rtd/cache_dump.c @@ -1,5 +1,4 @@ -/* $Id: cache_dump.c,v 1.4 2009/06/27 22:30:23 ralf Exp $ - * +/* * Copyright (c) 1996 Joerg Reuter (jreuter@poboxes.com) * * This program is free software; you can redistribute it and/or modify diff --git a/ax25rtd/config.c b/ax25rtd/config.c index e05cb95..abc40b3 100644 --- a/ax25rtd/config.c +++ b/ax25rtd/config.c @@ -1,5 +1,4 @@ -/* $Id: config.c,v 1.7 2009/06/27 22:30:23 ralf Exp $ - * +/* * Copyright (c) 1996 Joerg Reuter (jreuter@poboxes.com) * * This program is free software; you can redistribute it and/or modify @@ -670,8 +669,7 @@ void interpret_command(int fd, unsigned char *buf) } else if (!strcmp(cmd, "save")) { save_cache(); } else if (!strcmp(cmd, "version")) { - char buf[256]; - sprintf(buf, "%s\n", Version); + char buf[] = "ax25rtd version " VERSION "\n"; write(fd, buf, strlen(buf)); } else if (!strcmp(cmd, "quit")) { close(fd); diff --git a/ax25rtd/listener.c b/ax25rtd/listener.c index 342e41b..ab84889 100644 --- a/ax25rtd/listener.c +++ b/ax25rtd/listener.c @@ -1,5 +1,4 @@ -/* $Id: listener.c,v 1.8 2009/06/27 22:30:23 ralf Exp $ - * +/* * Copyright (c) 1996 Joerg Reuter (jreuter@poboxes.com) * * This program is free software; you can redistribute it and/or modify |