From: Lennart Poettering Date: Fri, 29 Mar 2013 14:47:18 +0000 (+0100) Subject: utmp: make gcc shut up, we need to pass an int here, not size_t X-Git-Tag: v201~156 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f04c0bd6ed2632f2e91c725388fd2f70859bfde5;p=elogind.git utmp: make gcc shut up, we need to pass an int here, not size_t --- diff --git a/src/shared/utmp-wtmp.c b/src/shared/utmp-wtmp.c index 8717dbac2..0a0180979 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; }