exit (E_USAGE);
}
-static void print_one (const struct passwd *pw, bool force)
+static void print_one (/*@null@*/const struct passwd *pw, bool force)
{
static bool once = false;
struct tm *tm;
*/
if (fread ((char *) &fl, sizeof (fl), 1, fail) != 1) {
fprintf (stderr,
- _("faillog: Failed to get the entry for UID %d\n"),
- pw->pw_uid);
+ _("faillog: Failed to get the entry for UID %lu\n"),
+ (unsigned long int)pw->pw_uid);
return;
}
} else {
*/
if (fread ((char *) &fl, sizeof (fl), 1, fail) != 1) {
fprintf (stderr,
- _("faillog: Failed to get the entry for UID %d\n"),
- uid);
+ _("faillog: Failed to get the entry for UID %lu\n"),
+ (unsigned long int)uid);
return true;
}
} else {
}
fprintf (stderr,
- _("faillog: Failed to reset fail count for UID %d\n"),
- uid);
+ _("faillog: Failed to reset fail count for UID %lu\n"),
+ (unsigned long int)uid);
return true;
}
*/
if (fread ((char *) &fl, sizeof (fl), 1, fail) != 1) {
fprintf (stderr,
- _("faillog: Failed to get the entry for UID %d\n"),
- uid);
+ _("faillog: Failed to get the entry for UID %lu\n"),
+ (unsigned long int)uid);
return true;
}
} else {
if ( (fseeko (fail, offset, SEEK_SET) == 0)
&& (fwrite ((char *) &fl, sizeof (fl), 1, fail) == 1)) {
- fflush (fail);
+ (void) fflush (fail);
return false;
}
fprintf (stderr,
- _("faillog: Failed to set max for UID %d\n"),
- uid);
+ _("faillog: Failed to set max for UID %lu\n"),
+ (unsigned long int)uid);
return true;
}
*/
if (fread ((char *) &fl, sizeof (fl), 1, fail) != 1) {
fprintf (stderr,
- _("faillog: Failed to get the entry for UID %d\n"),
- uid);
+ _("faillog: Failed to get the entry for UID %lu\n"),
+ (unsigned long int)uid);
return true;
}
} else {
fl.fail_locktime = locktime;
- if (fseeko (fail, offset, SEEK_SET) == 0
- && fwrite ((char *) &fl, sizeof (fl), 1, fail) == 1) {
- fflush (fail);
+ if ( (fseeko (fail, offset, SEEK_SET) == 0)
+ && (fwrite ((char *) &fl, sizeof (fl), 1, fail) == 1)) {
+ (void) fflush (fail);
return false;
}
fprintf (stderr,
- _("faillog: Failed to set locktime for UID %d\n"),
- uid);
+ _("faillog: Failed to set locktime for UID %lu\n"),
+ (unsigned long int)uid);
return true;
}