Module Name:    src
Committed By:   christos
Date:           Mon Dec 21 12:44:48 UTC 2009

Modified Files:
        src/bin/pax: sel_subs.c

Log Message:
Remove unnecessary casts.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/bin/pax/sel_subs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/pax/sel_subs.c
diff -u src/bin/pax/sel_subs.c:1.22 src/bin/pax/sel_subs.c:1.23
--- src/bin/pax/sel_subs.c:1.22	Mon Dec 21 04:17:37 2009
+++ src/bin/pax/sel_subs.c	Mon Dec 21 07:44:48 2009
@@ -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;
 			}
 		}

Reply via email to