X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=execute.c;fp=execute.c;h=ef24f71a253d0f369c9644689bdcb2c2af73c1b8;hb=bab45044482dc012331c768c08d78a2d006485ad;hp=a7775a4ea9f552cdc1defeecf3ba941775373372;hpb=462b33e96ad1732658b39895eea0b146e98bc3a5;p=elogind.git diff --git a/execute.c b/execute.c index a7775a4ea..ef24f71a2 100644 --- a/execute.c +++ b/execute.c @@ -392,8 +392,8 @@ static int chown_terminal(int fd, uid_t uid) { assert(fd >= 0); /* This might fail. What matters are the results. */ - fchown(fd, uid, -1); - fchmod(fd, TTY_MODE); + (void) fchown(fd, uid, -1); + (void) fchmod(fd, TTY_MODE); if (fstat(fd, &st) < 0) return -errno;