Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/pax Remove unnecessary casts.
details: https://anonhg.NetBSD.org/src/rev/6d88771eaf9b
branches: trunk
changeset: 750230:6d88771eaf9b
user: christos <christos%NetBSD.org@localhost>
date: Mon Dec 21 12:44:48 2009 +0000
description:
Remove unnecessary casts.
diffstat:
bin/pax/sel_subs.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r be06ed3c9ab3 -r 6d88771eaf9b bin/pax/sel_subs.c
--- a/bin/pax/sel_subs.c Mon Dec 21 11:22:41 2009 +0000
+++ b/bin/pax/sel_subs.c Mon Dec 21 12:44:48 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sel_subs.c,v 1.22 2009/12/21 09:17:37 wiz Exp $ */
+/* $NetBSD: sel_subs.c,v 1.23 2009/12/21 12:44:48 christos Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)sel_subs.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: sel_subs.c,v 1.22 2009/12/21 09:17:37 wiz Exp $");
+__RCSID("$NetBSD: sel_subs.c,v 1.23 2009/12/21 12:44:48 christos Exp $");
#endif
#endif /* not lint */
@@ -378,7 +378,7 @@
/*
* allocate space for the time range and store the limits
*/
- if ((pt = (TIME_RNG *)malloc(sizeof(TIME_RNG))) == NULL) {
+ if ((pt = malloc(sizeof(TIME_RNG))) == NULL) {
tty_warn(1, "Unable to allocate memory for time range");
return -1;
}
@@ -404,7 +404,7 @@
default:
tty_warn(1, "Bad option %c with time range %s",
*flgpt, str);
- (void)free((char *)pt);
+ free(pt);
goto out;
}
++flgpt;
@@ -421,7 +421,7 @@
*/
if (str_sec(str, &(pt->low_time)) < 0) {
tty_warn(1, "Illegal lower time range %s", str);
- (void)free((char *)pt);
+ free(pt);
goto out;
}
pt->flgs |= HASLOW;
@@ -433,7 +433,7 @@
*/
if (str_sec(up_pt, &(pt->high_time)) < 0) {
tty_warn(1, "Illegal upper time range %s", up_pt);
- (void)free((char *)pt);
+ free(pt);
goto out;
}
pt->flgs |= HASHIGH;
@@ -446,7 +446,7 @@
tty_warn(1,
"Upper %s and lower %s time overlap",
up_pt, str);
- (void)free((char *)pt);
+ free(pt);
return -1;
}
}
Home |
Main Index |
Thread Index |
Old Index