aboutsummaryrefslogtreecommitdiff
path: root/libssh/sftpserver.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-07-25 23:19:41 +0200
committerAndreas Schneider <mail@cynapses.org>2009-07-25 23:19:41 +0200
commit28b5d0f8751a8979231b3d2e6ccf182256219d52 (patch)
tree30618b26293838a766e56664ffcdbc0d583fb63c /libssh/sftpserver.c
parentba217dec1c7de84b1e51807660ccd2cc86f8dde4 (diff)
downloadlibssh-28b5d0f8751a8979231b3d2e6ccf182256219d52.tar.gz
libssh-28b5d0f8751a8979231b3d2e6ccf182256219d52.tar.xz
libssh-28b5d0f8751a8979231b3d2e6ccf182256219d52.zip
Switch completly to stdint types.
Diffstat (limited to 'libssh/sftpserver.c')
-rw-r--r--libssh/sftpserver.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libssh/sftpserver.c b/libssh/sftpserver.c
index 9f3c7c9a..0423653f 100644
--- a/libssh/sftpserver.c
+++ b/libssh/sftpserver.c
@@ -362,7 +362,7 @@ int sftp_reply_names(SFTP_CLIENT_MESSAGE *msg) {
return 0;
}
-int sftp_reply_status(SFTP_CLIENT_MESSAGE *msg, u32 status,
+int sftp_reply_status(SFTP_CLIENT_MESSAGE *msg, uint32_t status,
const char *message) {
ssh_buffer out;
ssh_string s;
@@ -422,7 +422,7 @@ int sftp_reply_data(SFTP_CLIENT_MESSAGE *msg, const void *data, int len) {
*/
ssh_string sftp_handle_alloc(SFTP_SESSION *sftp, void *info) {
ssh_string ret;
- u32 val;
+ uint32_t val;
int i;
if (sftp->handles == NULL) {
@@ -449,24 +449,24 @@ ssh_string sftp_handle_alloc(SFTP_SESSION *sftp, void *info) {
return NULL;
}
- memcpy(ret->string, &val, sizeof(u32));
+ memcpy(ret->string, &val, sizeof(uint32_t));
sftp->handles[i] = info;
return ret;
}
void *sftp_handle(SFTP_SESSION *sftp, ssh_string handle){
- u32 val;
+ uint32_t val;
if (sftp->handles == NULL) {
return NULL;
}
- if (string_len(handle) != sizeof(u32)) {
+ if (string_len(handle) != sizeof(uint32_t)) {
return NULL;
}
- memcpy(&val, handle->string, sizeof(u32));
+ memcpy(&val, handle->string, sizeof(uint32_t));
if (val > SFTP_HANDLES) {
return NULL;