diff options
author | Damien Miller <djm@mindrot.org> | 2003-05-25 14:38:33 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-05-25 14:38:33 +1000 |
commit | 04bd8b0bcc92eca7304898ce35705e0f403514c1 (patch) | |
tree | a4bfa854b5bce1e1d4f6a2214bdc30f3b5611974 /sshpty.c | |
parent | c11fe255ab45b8cf7783cedbcd688b00ed5308aa (diff) |
- djm@cvs.openbsd.org 2003/05/24 09:30:40
[authfile.c monitor.c sftp-common.c sshpty.c]
cast some types for printing; ok markus@
Diffstat (limited to 'sshpty.c')
-rw-r--r-- | sshpty.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -12,7 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "includes.h" | 14 | #include "includes.h" |
15 | RCSID("$OpenBSD: sshpty.c,v 1.8 2003/02/03 08:56:16 markus Exp $"); | 15 | RCSID("$OpenBSD: sshpty.c,v 1.9 2003/05/24 09:30:40 djm Exp $"); |
16 | 16 | ||
17 | #ifdef HAVE_UTIL_H | 17 | #ifdef HAVE_UTIL_H |
18 | # include <util.h> | 18 | # include <util.h> |
@@ -409,10 +409,10 @@ pty_setowner(struct passwd *pw, const char *ttyname) | |||
409 | if (errno == EROFS && | 409 | if (errno == EROFS && |
410 | (st.st_mode & (S_IRGRP | S_IROTH)) == 0) | 410 | (st.st_mode & (S_IRGRP | S_IROTH)) == 0) |
411 | debug("chmod(%.100s, 0%o) failed: %.100s", | 411 | debug("chmod(%.100s, 0%o) failed: %.100s", |
412 | ttyname, mode, strerror(errno)); | 412 | ttyname, (u_int)mode, strerror(errno)); |
413 | else | 413 | else |
414 | fatal("chmod(%.100s, 0%o) failed: %.100s", | 414 | fatal("chmod(%.100s, 0%o) failed: %.100s", |
415 | ttyname, mode, strerror(errno)); | 415 | ttyname, (u_int)mode, strerror(errno)); |
416 | } | 416 | } |
417 | } | 417 | } |
418 | } | 418 | } |