aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/fbsplash.c2
-rw-r--r--miscutils/last.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/fbsplash.c b/miscutils/fbsplash.c
index 05a77da23..12a77b70f 100644
--- a/miscutils/fbsplash.c
+++ b/miscutils/fbsplash.c
@@ -150,7 +150,7 @@ static void fb_open(const char *strfb_device)
150 150
151 // map the device in memory 151 // map the device in memory
152 G.addr = mmap(NULL, 152 G.addr = mmap(NULL,
153 G.scr_var.yres * G.scr_fix.line_length, 153 G.scr_var.yres * G.scr_fix.line_length,
154 PROT_WRITE, MAP_SHARED, fbfd, 0); 154 PROT_WRITE, MAP_SHARED, fbfd, 0);
155 if (G.addr == MAP_FAILED) 155 if (G.addr == MAP_FAILED)
156 bb_perror_msg_and_die("mmap"); 156 bb_perror_msg_and_die("mmap");
diff --git a/miscutils/last.c b/miscutils/last.c
index d52780374..24f6e1c78 100644
--- a/miscutils/last.c
+++ b/miscutils/last.c
@@ -71,7 +71,7 @@ int last_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
71 file = xopen(bb_path_wtmp_file, O_RDONLY); 71 file = xopen(bb_path_wtmp_file, O_RDONLY);
72 72
73 printf("%-10s %-14s %-18s %-12.12s %s\n", 73 printf("%-10s %-14s %-18s %-12.12s %s\n",
74 "USER", "TTY", "HOST", "LOGIN", "TIME"); 74 "USER", "TTY", "HOST", "LOGIN", "TIME");
75 /* yikes. We reverse over the file and that is a not too elegant way */ 75 /* yikes. We reverse over the file and that is a not too elegant way */
76 pos = xlseek(file, 0, SEEK_END); 76 pos = xlseek(file, 0, SEEK_END);
77 pos = lseek(file, pos - sizeof(ut), SEEK_SET); 77 pos = lseek(file, pos - sizeof(ut), SEEK_SET);
@@ -131,7 +131,7 @@ int last_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
131 * but some systems have it wrong */ 131 * but some systems have it wrong */
132 t_tmp = (time_t)ut.ut_tv.tv_sec; 132 t_tmp = (time_t)ut.ut_tv.tv_sec;
133 printf("%-10s %-14s %-18s %-12.12s\n", 133 printf("%-10s %-14s %-18s %-12.12s\n",
134 ut.ut_user, ut.ut_line, ut.ut_host, ctime(&t_tmp) + 4); 134 ut.ut_user, ut.ut_line, ut.ut_host, ctime(&t_tmp) + 4);
135 next: 135 next:
136 pos -= sizeof(ut); 136 pos -= sizeof(ut);
137 if (pos <= 0) 137 if (pos <= 0)