chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
813ac7d
)
utmp: make gcc shut up, we need to pass an int here, not size_t
author
Lennart Poettering
<lennart@poettering.net>
Fri, 29 Mar 2013 14:47:18 +0000
(15:47 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 29 Mar 2013 14:47:18 +0000
(15:47 +0100)
src/shared/utmp-wtmp.c
patch
|
blob
|
history
diff --git
a/src/shared/utmp-wtmp.c
b/src/shared/utmp-wtmp.c
index 8717dbac2d06161cba09989bdbc2102b6d4def5e..0a0180979b0ae7492a6f2987dafcbecf3583b64d 100644
(file)
--- 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;
}