Module Name: src
Committed By: dholland
Date: Thu Aug 27 00:43:31 UTC 2009
Modified Files:
src/games/fortune/fortune: fortune.c
Log Message:
remove more unnecessary casts
To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/games/fortune/fortune/fortune.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/games/fortune/fortune/fortune.c
diff -u src/games/fortune/fortune/fortune.c:1.54 src/games/fortune/fortune/fortune.c:1.55
--- src/games/fortune/fortune/fortune.c:1.54 Thu Aug 27 00:42:11 2009
+++ src/games/fortune/fortune/fortune.c Thu Aug 27 00:43:31 2009
@@ -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 */