Hi
Put the return type on its own line. Found while checking dhcpd.h.
Best,
Martin
Index: memory.c
===================================================================
RCS file: /cvs/src/usr.sbin/dhcpd/memory.c,v
retrieving revision 1.29
diff -u -p -r1.29 memory.c
--- memory.c 6 Apr 2020 17:05:40 -0000 1.29
+++ memory.c 7 Nov 2020 09:37:53 -0000
@@ -687,7 +687,8 @@ find_lease_by_ip_addr(struct iaddr addr)
addr.iabuf, addr.len);
}
-struct lease *find_lease_by_uid(unsigned char *uid, int len)
+struct lease *
+find_lease_by_uid(unsigned char *uid, int len)
{
return (struct lease *)hash_lookup(lease_uid_hash, uid, len);
}
Index: hash.c
===================================================================
RCS file: /cvs/src/usr.sbin/dhcpd/hash.c,v
retrieving revision 1.8
diff -u -p -r1.8 hash.c
--- hash.c 13 Feb 2017 19:13:14 -0000 1.8
+++ hash.c 7 Nov 2020 09:37:53 -0000
@@ -89,7 +89,8 @@ do_hash(unsigned char *name, int len, in
return (accum % size);
}
-void add_hash(struct hash_table *table, unsigned char *name, int len,
+void
+add_hash(struct hash_table *table, unsigned char *name, int len,
unsigned char *pointer)
{
int hashno;