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)
- 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 0cac10d3f..ee2b9d3b1 100644
--- a/sshpty.c
+++ b/sshpty.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$OpenBSD: sshpty.c,v 1.8 2003/02/03 08:56:16 markus Exp $"); 15RCSID("$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}