summaryrefslogtreecommitdiffstats
path: root/libexec/spamd/sdl.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-09-20 00:43:10 +0000
committerderaadt <deraadt@openbsd.org>2003-09-20 00:43:10 +0000
commite764c767844e1b205c22628f630728bb1f9f753d (patch)
treeb87f0ed57956d7a0e30cac5390699d3597b869f6 /libexec/spamd/sdl.c
parentincorrect ordering of free operations (diff)
downloadwireguard-openbsd-e764c767844e1b205c22628f630728bb1f9f753d.tar.xz
wireguard-openbsd-e764c767844e1b205c22628f630728bb1f9f753d.zip
knf
Diffstat (limited to 'libexec/spamd/sdl.c')
-rw-r--r--libexec/spamd/sdl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libexec/spamd/sdl.c b/libexec/spamd/sdl.c
index 32df2ed512b..42f287c770a 100644
--- a/libexec/spamd/sdl.c
+++ b/libexec/spamd/sdl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdl.c,v 1.8 2003/08/22 21:50:34 david Exp $ */
+/* $OpenBSD: sdl.c,v 1.9 2003/09/20 00:43:10 deraadt Exp $ */
/*
* Copyright (c) 2003 Bob Beck. All rights reserved.
*
@@ -68,8 +68,8 @@ sdl_add(char *sdname, char *sdstring, char ** addrs, int addrc)
*/
for (i = 0; i < blu; i++) {
if (strcmp(blacklists[i].tag, sdname) == 0) {
- index = i;
- break;
+ index = i;
+ break;
}
}
if (index != -1) {
@@ -83,7 +83,8 @@ sdl_add(char *sdname, char *sdstring, char ** addrs, int addrc)
}
if (index == blu && blu == blc) {
struct sdlist *tmp;
- tmp = realloc (blacklists, (blc + 128) *
+
+ tmp = realloc(blacklists, (blc + 128) *
sizeof(struct sdlist));
if (tmp == NULL)
return (-1);