diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-11-09 03:28:42 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-11-09 03:28:42 +0000 |
commit | 3a79183fce85f19baf6ec6c17783bc808421d9b6 (patch) | |
tree | 931428be8ab02ba1be7d939ee9b54971209469d3 | |
parent | d416c816c91fe1729e07a8ad078d7c392ce0176a (diff) |
calloc an array of char *, not pid_t (left over from previous implementation).
-rw-r--r-- | usr.bin/newsyslog/newsyslog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/newsyslog/newsyslog.c b/usr.bin/newsyslog/newsyslog.c index c3de8d67e34..56be352100c 100644 --- a/usr.bin/newsyslog/newsyslog.c +++ b/usr.bin/newsyslog/newsyslog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: newsyslog.c,v 1.28 1999/11/09 03:03:27 millert Exp $ */ +/* $OpenBSD: newsyslog.c,v 1.29 1999/11/09 03:28:41 millert Exp $ */ /* * Copyright (c) 1997, Jason Downs. All rights reserved. @@ -61,7 +61,7 @@ provided "as is" without express or implied warranty. */ #ifndef lint -static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.28 1999/11/09 03:03:27 millert Exp $"; +static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.29 1999/11/09 03:28:41 millert Exp $"; #endif /* not lint */ #ifndef CONF @@ -165,7 +165,7 @@ main(argc, argv) p = q = parse_file(&listlen); signal(SIGCHLD, child_killer); - pidfiles = calloc(sizeof(pid_t), listlen + 1); + pidfiles = calloc(sizeof(char *), listlen + 1); if (pidfiles == NULL) err(1, "calloc"); |