summaryrefslogtreecommitdiff
path: root/sshpty.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-05-25 14:38:33 +1000
committerDamien Miller <djm@mindrot.org>2003-05-25 14:38:33 +1000
commit04bd8b0bcc92eca7304898ce35705e0f403514c1 (patch)
treea4bfa854b5bce1e1d4f6a2214bdc30f3b5611974 /sshpty.c
parentc11fe255ab45b8cf7783cedbcd688b00ed5308aa (diff)
downloadopenssh-git-04bd8b0bcc92eca7304898ce35705e0f403514c1.tar.gz
- 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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshpty.c b/sshpty.c
index 0cac10d3..ee2b9d3b 100644
--- a/sshpty.c
+++ b/sshpty.c
@@ -12,7 +12,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshpty.c,v 1.8 2003/02/03 08:56:16 markus Exp $");
+RCSID("$OpenBSD: sshpty.c,v 1.9 2003/05/24 09:30:40 djm Exp $");
#ifdef HAVE_UTIL_H
# include <util.h>
@@ -409,10 +409,10 @@ pty_setowner(struct passwd *pw, const char *ttyname)
if (errno == EROFS &&
(st.st_mode & (S_IRGRP | S_IROTH)) == 0)
debug("chmod(%.100s, 0%o) failed: %.100s",
- ttyname, mode, strerror(errno));
+ ttyname, (u_int)mode, strerror(errno));
else
fatal("chmod(%.100s, 0%o) failed: %.100s",
- ttyname, mode, strerror(errno));
+ ttyname, (u_int)mode, strerror(errno));
}
}
}