summaryrefslogtreecommitdiff
path: root/src/shared/utmp-wtmp.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-03-29 15:47:18 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-29 15:47:18 +0100
commitf04c0bd6ed2632f2e91c725388fd2f70859bfde5 (patch)
treea1ed607ba9c2e960d1c04a408d0221ddae929294 /src/shared/utmp-wtmp.c
parent813ac7d3dded660486e3b22b27929d78328e3ab3 (diff)
utmp: make gcc shut up, we need to pass an int here, not size_t
Diffstat (limited to 'src/shared/utmp-wtmp.c')
-rw-r--r--src/shared/utmp-wtmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/utmp-wtmp.c b/src/shared/utmp-wtmp.c
index 8717dbac2d..0a0180979b 100644
--- a/src/shared/utmp-wtmp.c
+++ b/src/shared/utmp-wtmp.c
@@ -408,7 +408,7 @@ int utmp_wall(const char *message, bool (*match_tty)(const char *tty)) {
path = u->ut_line;
else {
if (asprintf(&buf, "/dev/%.*s",
- sizeof(u->ut_line), u->ut_line) < 0) {
+ (int) sizeof(u->ut_line), u->ut_line) < 0) {
r = -ENOMEM;
goto finish;
}