diff options
author | Ken Raeburn <raeburn@mit.edu> | 2009-02-02 23:41:40 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2009-02-02 23:41:40 +0000 |
commit | d431a41a7a0f44ff2d0e5c69fb8a6901f72d0b55 (patch) | |
tree | e4f6373671367a5afb16e2cc1e4bbbf44ab015b7 /src/appl/simple/client/sim_client.c | |
parent | 2fbe8a9edf3b69e68c226a79dad0747f19decd0b (diff) | |
download | krb5-d431a41a7a0f44ff2d0e5c69fb8a6901f72d0b55.zip krb5-d431a41a7a0f44ff2d0e5c69fb8a6901f72d0b55.tar.gz krb5-d431a41a7a0f44ff2d0e5c69fb8a6901f72d0b55.tar.bz2 |
Remove unnecessary pointer casts in args to free,memcpy,memset,memchr except unicode, windows code
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21875 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/simple/client/sim_client.c')
-rw-r--r-- | src/appl/simple/client/sim_client.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/appl/simple/client/sim_client.c b/src/appl/simple/client/sim_client.c index 4873f89..3cb71df 100644 --- a/src/appl/simple/client/sim_client.c +++ b/src/appl/simple/client/sim_client.c @@ -161,9 +161,9 @@ main(argc, argv) *cp = tolower((int) *cp); /* Set server's address */ - (void) memset((char *)&s_sock, 0, sizeof(s_sock)); + (void) memset(&s_sock, 0, sizeof(s_sock)); - memcpy((char *)&s_sock.sin_addr, host->h_addr, sizeof(s_sock.sin_addr)); + memcpy(&s_sock.sin_addr, host->h_addr, sizeof(s_sock.sin_addr)); #ifdef DEBUG printf("s_sock.sin_addr is %s\n", inet_ntoa(s_sock.sin_addr)); #endif @@ -186,7 +186,7 @@ main(argc, argv) exit(1); } - memset((char *)&c_sock, 0, sizeof(c_sock)); + memset(&c_sock, 0, sizeof(c_sock)); c_sock.sin_family = AF_INET; #ifdef BROKEN_STREAMS_SOCKETS if (gethostname(my_hostname, sizeof(my_hostname)) < 0) { @@ -198,7 +198,7 @@ main(argc, argv) fprintf(stderr, "%s: unknown host\n", hostname); exit(1); } - memcpy((char *)&c_sock.sin_addr, host->h_addr, sizeof(c_sock.sin_addr)); + memcpy(&c_sock.sin_addr, host->h_addr, sizeof(c_sock.sin_addr)); #endif @@ -243,7 +243,7 @@ main(argc, argv) /* PREPARE KRB_SAFE MESSAGE */ /* Get my address */ - memset((char *) &c_sock, 0, sizeof(c_sock)); + memset(&c_sock, 0, sizeof(c_sock)); len = sizeof(c_sock); if (getsockname(sock, (struct sockaddr *)&c_sock, &len) < 0) { com_err(progname, errno, "while getting socket name"); |