aboutsummaryrefslogtreecommitdiff
path: root/libssh/scp.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-08-11 09:41:52 +0200
committerAndreas Schneider <mail@cynapses.org>2009-08-11 09:41:52 +0200
commit14e1d015ee27513a4f7f387207a92bcc8de104c1 (patch)
tree87d9c8aa69e1a68a0bb69d274ee2b78685c4f5db /libssh/scp.c
parent3da1c17acbc37a2b54eb084fcd8030cde0cf723b (diff)
downloadlibssh-14e1d015ee27513a4f7f387207a92bcc8de104c1.tar.gz
libssh-14e1d015ee27513a4f7f387207a92bcc8de104c1.tar.xz
libssh-14e1d015ee27513a4f7f387207a92bcc8de104c1.zip
Fix uint8_t.
Diffstat (limited to 'libssh/scp.c')
-rw-r--r--libssh/scp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libssh/scp.c b/libssh/scp.c
index 03a7012..c0ebac0 100644
--- a/libssh/scp.c
+++ b/libssh/scp.c
@@ -59,7 +59,7 @@ ssh_scp ssh_scp_new(ssh_session session, int mode, const char *location){
int ssh_scp_init(ssh_scp scp){
int r;
char execbuffer[1024];
- u_int8_t code;
+ uint8_t code;
if(scp->state != SSH_SCP_NEW){
ssh_set_error(scp->session,SSH_FATAL,"ssh_scp_init called under invalid state");
return SSH_ERROR;
@@ -131,7 +131,7 @@ void ssh_scp_free(ssh_scp scp){
int ssh_scp_push_file(ssh_scp scp, const char *filename, size_t size, const char *perms){
char buffer[1024];
int r;
- u_int8_t code;
+ uint8_t code;
if(scp->state != SSH_SCP_WRITE_INITED){
ssh_set_error(scp->session,SSH_FATAL,"ssh_scp_push_file called under invalid state");
return SSH_ERROR;
@@ -163,7 +163,7 @@ int ssh_scp_push_file(ssh_scp scp, const char *filename, size_t size, const char
int ssh_scp_write(ssh_scp scp, const void *buffer, size_t len){
int w;
//int r;
- //u_int8_t code;
+ //uint8_t code;
if(scp->state != SSH_SCP_WRITE_WRITING){
ssh_set_error(scp->session,SSH_FATAL,"ssh_scp_write called under invalid state");
return SSH_ERROR;