Eliminated the unpacking of uid in the chkpwd
[citadel.git] / citadel / chkpwd.c
index a07ad18ac74d857eead2d50ed75393ce3db05f95..076138cf8b0b8326e8106dd253f8ace896d38728 100644 (file)
@@ -26,8 +26,7 @@ int main(void)
        char buf[SIZ];
 
        while (1) {
-               read(0, buf, 16);       /* uid */
-               uid = atoi(buf);
+               read(0, &uid, sizeof(uid_t));   /* uid */
                read(0, buf, 256);      /* password */
 
                if (validate_password(uid, buf)) {