summaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-07-08 15:01:56 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-10-02 22:14:45 -0700
commitd5cc5b0e6b4e9cd1ee35e58069018f75bb0a3ed3 (patch)
tree18c137b56136bbc3d273052e9999f110b2c4021e /server.c
parent29ec5378ff7eae6b14a49347008ea35db069b936 (diff)
SaveBytes: drop unnecessary casts in bcopy() call
Clears gcc warning from casting a const char * to char *: server.c: In function `SaveBytes': server.c:203: warning: cast discards qualifiers from pointer target type Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
Diffstat (limited to 'server.c')
-rw-r--r--server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server.c b/server.c
index b0019ee..efeae56 100644
--- a/server.c
+++ b/server.c
@@ -203,9 +203,9 @@ SaveBytes(FD fd, const unsigned char *buf, long n)
}
/* now copy the new bytes onto the end of the old bytes */
- bcopy( /* from */ (char *) buf,
- /* to */ (char *) (CS[fd].SavedBytes + CS[fd].NumberofSavedBytes),
- /* count */ (int) n);
+ bcopy(/* from */ buf,
+ /* to */ (CS[fd].SavedBytes + CS[fd].NumberofSavedBytes),
+ /* count */ n);
CS[fd].NumberofSavedBytes += n;
}