summaryrefslogtreecommitdiff
path: root/libexec/spamd/sdl.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-03-02 20:40:16 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-03-02 20:40:16 +0000
commitf5c783889ab487d7145bc7b2be64f99cca3d71e9 (patch)
treee740f0252c2e9ca1eb250076ff4571127282fb53 /libexec/spamd/sdl.c
parent0e65599226cd7239a161c1620c96efa27caa4b5b (diff)
knf
Diffstat (limited to 'libexec/spamd/sdl.c')
-rw-r--r--libexec/spamd/sdl.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/libexec/spamd/sdl.c b/libexec/spamd/sdl.c
index 70fb5795920..293a9c76465 100644
--- a/libexec/spamd/sdl.c
+++ b/libexec/spamd/sdl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdl.c,v 1.2 2003/03/02 20:32:05 deraadt Exp $ */
+/* $OpenBSD: sdl.c,v 1.3 2003/03/02 20:40:15 deraadt Exp $ */
/*
* Copyright (c) 2003 Bob Beck. All rights reserved.
*
@@ -50,7 +50,7 @@ struct sdlist *blacklists = NULL;
int blc = 0, blu = 0;
int
-sdl_add (char *sdname, char *sdstring, char ** addrs, int addrc)
+sdl_add(char *sdname, char *sdstring, char ** addrs, int addrc)
{
int i, index = -1;
char astring[40];
@@ -76,7 +76,7 @@ sdl_add (char *sdname, char *sdstring, char ** addrs, int addrc)
printf("adding list %s\n", sdname);
index = blu;
}
- if (index == blu && blu == blc) {
+ if (index == blu && blu == blc) {
struct sdlist *tmp;
tmp = realloc (blacklists, (blc + 128) *
sizeof(struct sdlist));
@@ -197,7 +197,7 @@ sdl_lookup(struct sdlist *head, int af, void * src)
int i, matches = 0;
struct sdlist *sdl;
struct sdentry *sda;
- struct sdaddr *source = (struct sdaddr *) src ;
+ struct sdaddr *source = (struct sdaddr *) src;
static int sdnewlen = 0;
static struct sdlist **sdnew = NULL;
@@ -213,10 +213,12 @@ sdl_lookup(struct sdlist *head, int af, void * src)
struct sdlist **tmp;
tmp = realloc(sdnew,
(sdnewlen + 128) *
- sizeof(struct sdlist *) );
+ sizeof(struct sdlist *));
if (tmp == NULL)
- /* XXX out of memory - return
- what we have */
+ /*
+ * XXX out of memory -
+ * return what we have
+ */
return(sdnew);
sdnew = tmp;
sdnewlen += 128;