Added debug output and missing casts

This commit is contained in:
goldsimon
2010-02-22 17:49:49 +00:00
parent 402597c2cb
commit ea78d69c6d
5 changed files with 16 additions and 12 deletions

View File

@@ -605,7 +605,7 @@ auth_peer_success(int unit, u16_t protocol, char *name, int namelen)
/*
* Save the authenticated name of the peer for later.
*/
if (namelen > sizeof(peer_authname) - 1) {
if (namelen > (int)sizeof(peer_authname) - 1) {
namelen = sizeof(peer_authname) - 1;
}
BCOPY(name, peer_authname, namelen);