Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/cron/dist remove bad cast.



details:   https://anonhg.NetBSD.org/src/rev/04728d600d81
branches:  trunk
changeset: 756384:04728d600d81
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jul 15 20:03:28 2010 +0000

description:
remove bad cast.

diffstat:

 external/bsd/cron/dist/entry.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1daa65c2daca -r 04728d600d81 external/bsd/cron/dist/entry.c
--- a/external/bsd/cron/dist/entry.c    Thu Jul 15 19:15:30 2010 +0000
+++ b/external/bsd/cron/dist/entry.c    Thu Jul 15 20:03:28 2010 +0000
@@ -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.,



Home | Main Index | Thread Index | Old Index