Module Name: src Committed By: christos Date: Thu Jul 15 20:03:29 UTC 2010
Modified Files: src/external/bsd/cron/dist: entry.c Log Message: remove bad cast. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/bsd/cron/dist/entry.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/cron/dist/entry.c diff -u src/external/bsd/cron/dist/entry.c:1.3 src/external/bsd/cron/dist/entry.c:1.4 --- src/external/bsd/cron/dist/entry.c:1.3 Sat Jul 10 17:42:29 2010 +++ src/external/bsd/cron/dist/entry.c Thu Jul 15 16:03:28 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: entry.c,v 1.3 2010/07/10 21:42:29 christos Exp $ */ +/* $NetBSD: entry.c,v 1.4 2010/07/15 20:03:28 christos Exp $ */ /* * Copyright 1988,1990,1993,1994 by Paul Vixie @@ -26,7 +26,7 @@ #if 0 static char rcsid[] = "Id: entry.c,v 1.17 2004/01/23 18:56:42 vixie Exp"; #else -__RCSID("$NetBSD: entry.c,v 1.3 2010/07/10 21:42:29 christos Exp $"); +__RCSID("$NetBSD: entry.c,v 1.4 2010/07/15 20:03:28 christos Exp $"); #endif #endif @@ -110,7 +110,7 @@ * of a list of minutes. */ - e = (entry *) calloc(sizeof(entry), sizeof(char)); + e = calloc(sizeof(*e), sizeof(char)); if (ch == '@') { /* all of these should be flagged and load-limited; i.e.,