diff options
author | kan <kan@FreeBSD.org> | 2004-07-28 05:44:52 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2004-07-28 05:44:52 +0000 |
commit | c80f4c2e29c8ea67baf9c126bf24f1c00fd7bb60 (patch) | |
tree | 40c14b2205e21a9e5dd741c42590c8d158d5ee3e /lib/libncp/ncpl_conn.c | |
parent | 289257fe908613e6d8d9aad77f68a53d83db542d (diff) | |
download | FreeBSD-src-c80f4c2e29c8ea67baf9c126bf24f1c00fd7bb60.zip FreeBSD-src-c80f4c2e29c8ea67baf9c126bf24f1c00fd7bb60.tar.gz |
Avoid casts as lvalues.
Diffstat (limited to 'lib/libncp/ncpl_conn.c')
-rw-r--r-- | lib/libncp/ncpl_conn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libncp/ncpl_conn.c b/lib/libncp/ncpl_conn.c index a54c625..8f49cb9 100644 --- a/lib/libncp/ncpl_conn.c +++ b/lib/libncp/ncpl_conn.c @@ -424,9 +424,9 @@ ncp_login(int connHandle, const char *user, int objtype, const char *password) { ncp_init_request(conn); ncp_add_byte(conn, NCP_CONN_LOGIN); p = (struct ncp_conn_login *)&conn->packet[conn->rqsize]; - (const char*)p->username = user; + p->username = (char *)user; p->objtype = objtype; - (const char*)p->password = password; + p->password = (char *)password; conn->rqsize += sizeof(*p); if ((error = ncp_conn_request(connHandle, conn)) < 0) return -1; |