Source-Changes-HG archive

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

[src/trunk]: src/games/fortune/fortune remove more unnecessary casts



details:   https://anonhg.NetBSD.org/src/rev/9b18adeff010
branches:  trunk
changeset: 747001:9b18adeff010
user:      dholland <dholland%NetBSD.org@localhost>
date:      Thu Aug 27 00:43:31 2009 +0000

description:
remove more unnecessary casts

diffstat:

 games/fortune/fortune/fortune.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r c378fb30a99d -r 9b18adeff010 games/fortune/fortune/fortune.c
--- a/games/fortune/fortune/fortune.c   Thu Aug 27 00:42:11 2009 +0000
+++ b/games/fortune/fortune/fortune.c   Thu Aug 27 00:43:31 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fortune.c,v 1.54 2009/08/27 00:42:11 dholland Exp $    */
+/*     $NetBSD: fortune.c,v 1.55 2009/08/27 00:43:31 dholland Exp $    */
 
 /*-
  * Copyright (c) 1986, 1993
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)fortune.c  8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: fortune.c,v 1.54 2009/08/27 00:42:11 dholland Exp $");
+__RCSID("$NetBSD: fortune.c,v 1.55 2009/08/27 00:43:31 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -670,7 +670,7 @@
 {
        char    *new;
 
-       new = copy(file, (unsigned int) (strlen(file) + 2));
+       new = copy(file, strlen(file) + 2);
        return strcat(new, "-o");
 }
 
@@ -851,7 +851,7 @@
                        }
        }
 
-       datfile = copy(file, (unsigned int) (strlen(file) + 4)); /* +4 for ".dat" */
+       datfile = copy(file, strlen(file) + 4); /* +4 for ".dat" */
        strcat(datfile, ".dat");
        if (access(datfile, R_OK) < 0) {
                free(datfile);
@@ -864,7 +864,7 @@
                free(datfile);
 #ifdef OK_TO_WRITE_DISK
        if (posp != NULL) {
-               *posp = copy(file, (unsigned int) (strlen(file) + 4)); /* +4 for ".dat" */
+               *posp = copy(file, strlen(file) + 4); /* +4 for ".dat" */
                (void) strcat(*posp, ".pos");
        }
 #endif /* OK_TO_WRITE_DISK */



Home | Main Index | Thread Index | Old Index