diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -33,7 +33,7 @@ | |||
33 | */ | 33 | */ |
34 | 34 | ||
35 | #include "includes.h" | 35 | #include "includes.h" |
36 | RCSID("$OpenBSD: session.c,v 1.44 2000/11/14 23:44:19 markus Exp $"); | 36 | RCSID("$OpenBSD: session.c,v 1.45 2000/12/19 23:17:58 markus Exp $"); |
37 | 37 | ||
38 | #include "xmalloc.h" | 38 | #include "xmalloc.h" |
39 | #include "ssh.h" | 39 | #include "ssh.h" |
@@ -137,7 +137,7 @@ extern ServerOptions options; | |||
137 | extern char *__progname; | 137 | extern char *__progname; |
138 | extern int log_stderr; | 138 | extern int log_stderr; |
139 | extern int debug_flag; | 139 | extern int debug_flag; |
140 | extern unsigned int utmp_len; | 140 | extern u_int utmp_len; |
141 | 141 | ||
142 | extern int startup_pipe; | 142 | extern int startup_pipe; |
143 | 143 | ||
@@ -218,7 +218,7 @@ do_authenticated(struct passwd * pw) | |||
218 | char *command; | 218 | char *command; |
219 | int n_bytes; | 219 | int n_bytes; |
220 | int plen; | 220 | int plen; |
221 | unsigned int proto_len, data_len, dlen; | 221 | u_int proto_len, data_len, dlen; |
222 | 222 | ||
223 | /* | 223 | /* |
224 | * Cancel the alarm we set to limit the time taken for | 224 | * Cancel the alarm we set to limit the time taken for |
@@ -783,10 +783,10 @@ do_login(Session *s, const char *command) | |||
783 | * already exists, its value is overriden. | 783 | * already exists, its value is overriden. |
784 | */ | 784 | */ |
785 | void | 785 | void |
786 | child_set_env(char ***envp, unsigned int *envsizep, const char *name, | 786 | child_set_env(char ***envp, u_int *envsizep, const char *name, |
787 | const char *value) | 787 | const char *value) |
788 | { | 788 | { |
789 | unsigned int i, namelen; | 789 | u_int i, namelen; |
790 | char **env; | 790 | char **env; |
791 | 791 | ||
792 | /* | 792 | /* |
@@ -824,7 +824,7 @@ child_set_env(char ***envp, unsigned int *envsizep, const char *name, | |||
824 | * and assignments of the form name=value. No other forms are allowed. | 824 | * and assignments of the form name=value. No other forms are allowed. |
825 | */ | 825 | */ |
826 | void | 826 | void |
827 | read_environment_file(char ***env, unsigned int *envsize, | 827 | read_environment_file(char ***env, u_int *envsize, |
828 | const char *filename) | 828 | const char *filename) |
829 | { | 829 | { |
830 | FILE *f; | 830 | FILE *f; |
@@ -1009,7 +1009,7 @@ do_child(const char *command, struct passwd * pw, const char *term, | |||
1009 | char buf[256]; | 1009 | char buf[256]; |
1010 | char cmd[1024]; | 1010 | char cmd[1024]; |
1011 | FILE *f = NULL; | 1011 | FILE *f = NULL; |
1012 | unsigned int envsize, i; | 1012 | u_int envsize, i; |
1013 | char **env; | 1013 | char **env; |
1014 | extern char **environ; | 1014 | extern char **environ; |
1015 | struct stat st; | 1015 | struct stat st; |
@@ -1579,7 +1579,7 @@ session_window_change_req(Session *s) | |||
1579 | int | 1579 | int |
1580 | session_pty_req(Session *s) | 1580 | session_pty_req(Session *s) |
1581 | { | 1581 | { |
1582 | unsigned int len; | 1582 | u_int len; |
1583 | char *term_modes; /* encoded terminal modes */ | 1583 | char *term_modes; /* encoded terminal modes */ |
1584 | 1584 | ||
1585 | if (no_pty_flag) | 1585 | if (no_pty_flag) |
@@ -1628,7 +1628,7 @@ session_pty_req(Session *s) | |||
1628 | int | 1628 | int |
1629 | session_subsystem_req(Session *s) | 1629 | session_subsystem_req(Session *s) |
1630 | { | 1630 | { |
1631 | unsigned int len; | 1631 | u_int len; |
1632 | int success = 0; | 1632 | int success = 0; |
1633 | char *subsys = packet_get_string(&len); | 1633 | char *subsys = packet_get_string(&len); |
1634 | int i; | 1634 | int i; |
@@ -1724,7 +1724,7 @@ session_shell_req(Session *s) | |||
1724 | int | 1724 | int |
1725 | session_exec_req(Session *s) | 1725 | session_exec_req(Session *s) |
1726 | { | 1726 | { |
1727 | unsigned int len; | 1727 | u_int len; |
1728 | char *command = packet_get_string(&len); | 1728 | char *command = packet_get_string(&len); |
1729 | packet_done(); | 1729 | packet_done(); |
1730 | if (forced_command) { | 1730 | if (forced_command) { |
@@ -1762,7 +1762,7 @@ session_auth_agent_req(Session *s) | |||
1762 | void | 1762 | void |
1763 | session_input_channel_req(int id, void *arg) | 1763 | session_input_channel_req(int id, void *arg) |
1764 | { | 1764 | { |
1765 | unsigned int len; | 1765 | u_int len; |
1766 | int reply; | 1766 | int reply; |
1767 | int success = 0; | 1767 | int success = 0; |
1768 | char *rtype; | 1768 | char *rtype; |