From e4a1f12e7e44b2b62ece74c9ea36354fa944acf9 Mon Sep 17 00:00:00 2001 From: plunky Date: Wed, 31 Aug 2011 16:24:54 +0000 Subject: NULL does not need a cast --- fish/fish.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fish') diff --git a/fish/fish.c b/fish/fish.c index f029e4dc..c9a137b9 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -1,4 +1,4 @@ -/* $NetBSD: fish.c,v 1.20 2009/08/12 05:55:53 dholland Exp $ */ +/* $NetBSD: fish.c,v 1.21 2011/08/31 16:24:55 plunky Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1990, 1993\ #if 0 static char sccsid[] = "@(#)fish.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: fish.c,v 1.20 2009/08/12 05:55:53 dholland Exp $"); +__RCSID("$NetBSD: fish.c,v 1.21 2011/08/31 16:24:55 plunky Exp $"); #endif #endif /* not lint */ @@ -112,7 +112,7 @@ main(int argc, char **argv) usage(); } - srandom(time((time_t *)NULL)); + srandom(time(NULL)); instructions(); init(); @@ -456,7 +456,7 @@ instructions(void) err(1, "open %s", _PATH_INSTR); if (dup2(fd, 0) == -1) err(1, "dup2"); - (void)execl("/bin/sh", "sh", "-c", pager, (char *) NULL); + (void)execl("/bin/sh", "sh", "-c", pager, NULL); err(1, "exec sh -c %s", pager); /*NOTREACHED*/ case -1: -- cgit v1.2.3-56-ge451