diff options
| author | dholland <dholland@NetBSD.org> | 2009-08-27 00:43:31 +0000 |
|---|---|---|
| committer | dholland <dholland@NetBSD.org> | 2009-08-27 00:43:31 +0000 |
| commit | b80dbf803149e542a7d15dad052d9d66863b1d3e (patch) | |
| tree | 01a5e51ead358819ad789523c2d0872f118bde1c | |
| parent | 9ece4dba1c9064a0832bbbafff9b1f737edc6ae4 (diff) | |
remove more unnecessary casts
| -rw-r--r-- | games/fortune/fortune/fortune.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c index 4e8e6ecb91b..58eb16bfcce 100644 --- a/games/fortune/fortune/fortune.c +++ b/games/fortune/fortune/fortune.c @@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1986, 1993\ #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 @@ off_name(file) { char *new; - new = copy(file, (unsigned int) (strlen(file) + 2)); + new = copy(file, strlen(file) + 2); return strcat(new, "-o"); } @@ -851,7 +851,7 @@ is_fortfile(file, datp, posp, check_for_offend) } } - 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 @@ is_fortfile(file, datp, posp, check_for_offend) 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 */ |
