* First cut at Solaris fixes. There may still be some *printf("%s", NULL)
[citadel.git] / citadel / user_ops.c
index 7c94c1da92fc55810bff9ed6ce84dd1bcad4d4af..6e69ef068a494213248394790714b97e9c9262b4 100644 (file)
@@ -417,7 +417,7 @@ static int validpw(uid_t uid, const char *pass)
                }
 
        close(pipev[0]);
-       write(pipev[1], buf, sprintf(buf, "%u\n", uid));
+       write(pipev[1], buf, sprintf(buf, "%lu\n", (unsigned long)uid));
        write(pipev[1], pass, strlen(pass));
        write(pipev[1], "\n", 1);
        close(pipev[1]);