diff options
| author | Mattias Andrée <maandree@operamail.com> | 2014-04-07 19:43:38 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2014-04-07 19:43:38 +0200 |
| commit | 9641824e740781b963ef60c15aa75d23554f7aa9 (patch) | |
| tree | 7cfc6b49673d8f7fed2b0602289d2dca51c8a2b0 /src/security.c | |
| parent | add more warnings (diff) | |
| download | cerberus-9641824e740781b963ef60c15aa75d23554f7aa9.tar.gz cerberus-9641824e740781b963ef60c15aa75d23554f7aa9.tar.bz2 cerberus-9641824e740781b963ef60c15aa75d23554f7aa9.tar.xz | |
fix some warnings
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/security.c')
| -rw-r--r-- | src/security.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/security.c b/src/security.c index 151a7a3..45feb66 100644 --- a/src/security.c +++ b/src/security.c @@ -33,7 +33,7 @@ #include "security.h" -static inline void fail(char* str) +static void fail(const char* str) { perror(str); sleep(ERROR_SLEEP); @@ -62,7 +62,7 @@ void secure_tty(gid_t group) /* Kill other processes on this TTY */ tcgetattr(STDIN_FILENO, &tty); saved_tty = tty; - tty.c_cflag &= ~HUPCL; + tty.c_cflag &= (tcflag_t)~HUPCL; tcsetattr(0, TCSANOW, &tty); close(STDIN_FILENO); close(STDOUT_FILENO); |
