summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/session.c b/session.c
index 82096c3ab..4a77eef6b 100644
--- a/session.c
+++ b/session.c
@@ -8,7 +8,7 @@
8 */ 8 */
9 9
10#include "includes.h" 10#include "includes.h"
11RCSID("$OpenBSD: session.c,v 1.29 2000/08/21 16:23:31 millert Exp $"); 11RCSID("$OpenBSD: session.c,v 1.31 2000/08/28 03:50:54 deraadt Exp $");
12 12
13#include "xmalloc.h" 13#include "xmalloc.h"
14#include "ssh.h" 14#include "ssh.h"
@@ -1014,7 +1014,7 @@ do_child(const char *command, struct passwd * pw, const char *term,
1014#endif /* HAVE_OSF_SIA */ 1014#endif /* HAVE_OSF_SIA */
1015 1015
1016 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) 1016 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid)
1017 fatal("Failed to set uids to %d.", (int) pw->pw_uid); 1017 fatal("Failed to set uids to %u.", (u_int) pw->pw_uid);
1018 } 1018 }
1019 /* 1019 /*
1020 * Get the shell from the password data. An empty shell field is 1020 * Get the shell from the password data. An empty shell field is
@@ -1229,7 +1229,7 @@ do_child(const char *command, struct passwd * pw, const char *term,
1229 if (screen != NULL) 1229 if (screen != NULL)
1230 fprintf(stderr, 1230 fprintf(stderr,
1231 "Adding %.*s/unix%s %s %s\n", 1231 "Adding %.*s/unix%s %s %s\n",
1232 screen-display, display, 1232 (int)(screen-display), display,
1233 screen, auth_proto, auth_data); 1233 screen, auth_proto, auth_data);
1234 } 1234 }
1235 snprintf(cmd, sizeof cmd, "%s -q -", 1235 snprintf(cmd, sizeof cmd, "%s -q -",
@@ -1240,7 +1240,7 @@ do_child(const char *command, struct passwd * pw, const char *term,
1240 auth_proto, auth_data); 1240 auth_proto, auth_data);
1241 if (screen != NULL) 1241 if (screen != NULL)
1242 fprintf(f, "add %.*s/unix%s %s %s\n", 1242 fprintf(f, "add %.*s/unix%s %s %s\n",
1243 screen-display, display, 1243 (int)(screen-display), display,
1244 screen, auth_proto, auth_data); 1244 screen, auth_proto, auth_data);
1245 pclose(f); 1245 pclose(f);
1246 } else { 1246 } else {