Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

* chklastlog.c: Fix type warnings #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions chklastlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void free_results(struct s_localpwd *);
uid_t *localgetpwnam(struct s_localpwd *, char *);
int getslot(struct s_localpwd *, uid_t);

#define MAX_ID 99999
#define MAX_ID 99999u

int main(int argc, char*argv[]) {
int fh_wtmp;
Expand Down Expand Up @@ -167,7 +167,7 @@ int main(int argc, char*argv[]) {
{
if (*uid > MAX_ID)
{
fprintf(stderr, "MAX_ID is %ld and current uid is %ld, please check\n\r", MAX_ID, *uid );
fprintf(stderr, "MAX_ID is %u and current uid is %u, please check\n\r", MAX_ID, *uid );
exit (1);

}
Expand Down