repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
memset() is posix, bzero() is not change bzero into memset
[deb_libnfs.git]
/
lib
/
init.c
diff --git
a/lib/init.c
b/lib/init.c
index a247787d4dfa364b17b80bbae9a6f1d8ce3177dd..7ef329298afb136f337d4a1d5cea2adbc4aadda5 100644
(file)
--- a/
lib/init.c
+++ b/
lib/init.c
@@
-40,7
+40,7
@@
struct rpc_context *rpc_init_context(void)
if (rpc == NULL) {
return NULL;
}
if (rpc == NULL) {
return NULL;
}
-
bzero((char *)rpc
, sizeof(struct rpc_context));
+
memset(rpc, 0
, sizeof(struct rpc_context));
rpc->encodebuflen = 65536;
rpc->encodebuf = malloc(rpc->encodebuflen);
rpc->encodebuflen = 65536;
rpc->encodebuf = malloc(rpc->encodebuflen);
@@
-83,7
+83,7
@@
void rpc_set_auth(struct rpc_context *rpc, struct AUTH *auth)
if (rpc->auth != NULL) {
auth_destroy(rpc->auth);
}
if (rpc->auth != NULL) {
auth_destroy(rpc->auth);
}
- rpc->auth = auth;
+ rpc->auth =
(AUTH *)
auth;
}
}