minor cleanup

This commit is contained in:
Kurt Zeilenga 1998-10-24 20:25:50 +00:00
parent 6c6d3d8f0c
commit 198461b7ff

View File

@ -218,7 +218,7 @@ open_ldap_connection( LDAP *ld, Sockbuf *sb, char *host, int defport,
curhost = hostname;
}
*r++ = '\0';
port = htons( (short)atoi( r ));
port = htons( (short) atoi( r ) );
} else {
port = defport;
}