From: deraadt Date: Tue, 22 Jul 2014 16:51:00 +0000 (+0000) Subject: remove unneccessary casts; Kent R. Spillner X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a71ac23e0a0d555a07b69695356dbb8e5afc5b6a;p=openbsd remove unneccessary casts; Kent R. Spillner --- diff --git a/sys/lib/libsa/ufs.c b/sys/lib/libsa/ufs.c index a9541c444a4..7dbb172557e 100644 --- a/sys/lib/libsa/ufs.c +++ b/sys/lib/libsa/ufs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ufs.c,v 1.22 2013/05/30 19:19:09 guenther Exp $ */ +/* $OpenBSD: ufs.c,v 1.23 2014/07/22 16:51:00 deraadt Exp $ */ /* $NetBSD: ufs.c,v 1.16 1996/09/30 16:01:22 ws Exp $ */ /*- @@ -502,7 +502,7 @@ ufs_open(char *path, struct open_file *f) if (rc) goto out; - bcopy((char *)buf, namebuf, (unsigned)link_len); + bcopy(buf, namebuf, (unsigned)link_len); } /* diff --git a/sys/lib/libsa/ufs2.c b/sys/lib/libsa/ufs2.c index 876d499fcdb..b3623fff036 100644 --- a/sys/lib/libsa/ufs2.c +++ b/sys/lib/libsa/ufs2.c @@ -498,7 +498,7 @@ ufs2_open(char *path, struct open_file *f) if (rc) goto out; - bcopy((char *)buf, namebuf, (unsigned)link_len); + bcopy(buf, namebuf, (unsigned)link_len); } /*