From 55f2ffa0fc600cad1c08b024cf73861fa063ff69 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sun, 30 Jul 2023 16:42:51 -0400 Subject: [PATCH] Clean up whitespace a bit. --- NEWS | 3 +++ configure.ac | 2 +- src/rarpd.c | 42 +++++++++++++++++++++--------------------- 3 files changed, 25 insertions(+), 22 deletions(-) diff --git a/NEWS b/NEWS index 04beabb..5170dfc 100644 --- a/NEWS +++ b/NEWS @@ -1,2 +1,5 @@ +Release 1a: + * Various bug fixes and improvements. + Release 1: * Initial release of rarpd separated from iputils. diff --git a/configure.ac b/configure.ac index 6eff551..a2a5951 100644 --- a/configure.ac +++ b/configure.ac @@ -5,7 +5,7 @@ dnl This is free software: you are free to do what the fuck you want to. dnl There is NO WARRANTY, to the extent permitted by law. AC_PREREQ([2.68]) -AC_INIT([rarpd], [1], [nbowler@draconx.ca], [rarpd-dx]) +AC_INIT([rarpd], [1a], [nbowler@draconx.ca], [rarpd-dx]) AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign subdir-objects]) AM_SILENT_RULES([yes]) diff --git a/src/rarpd.c b/src/rarpd.c index 2374fb0..38e8d37 100644 --- a/src/rarpd.c +++ b/src/rarpd.c @@ -1,12 +1,12 @@ /* - * rarpd.c RARP daemon. + * rarpd.c RARP daemon. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. * - * Authors: Alexey Kuznetsov, + * Authors: Alexey Kuznetsov, * * Extricated from iputils by Nick Bowler (2023-07). */ @@ -50,31 +50,31 @@ extern int ether_ntohost(char *name, unsigned char *ea); struct iflink { - struct iflink *next; - int index; - int hatype; - unsigned char lladdr[16]; - char name[IFNAMSIZ]; - struct ifaddr *ifa_list; + struct iflink *next; + int index; + int hatype; + unsigned char lladdr[16]; + char name[IFNAMSIZ]; + struct ifaddr *ifa_list; } *ifl_list; struct ifaddr { - struct ifaddr *next; - uint32_t prefix; - uint32_t mask; - uint32_t local; + struct ifaddr *next; + uint32_t prefix; + uint32_t mask; + uint32_t local; }; struct rarp_map { struct rarp_map *next; - int ifindex; - int arp_type; - int lladdr_len; - unsigned char lladdr[16]; - uint32_t ipaddr; + int ifindex; + int arp_type; + int lladdr_len; + unsigned char lladdr[16]; + uint32_t ipaddr; } *rarp_db; static void print_usage(FILE *f) -- 2.43.2