diff options
author | m0gg | 2006-03-06 13:37:38 +0000 |
---|---|---|
committer | m0gg | 2006-03-06 13:37:38 +0000 |
commit | 52767927889b305fe18b28ddfc5351f08b703d2d (patch) | |
tree | 6dbfd60ef92ec9781553ee8cc9c50a5359088b5f /nanohttp/nanohttp-response.c | |
parent | 45e68a4a2394cf415b157b08a15a5cf8ac0df8f8 (diff) | |
download | csoap-52767927889b305fe18b28ddfc5351f08b703d2d.tar.gz csoap-52767927889b305fe18b28ddfc5351f08b703d2d.tar.bz2 |
Various changes see ChangeLog
Diffstat (limited to 'nanohttp/nanohttp-response.c')
-rwxr-xr-x | nanohttp/nanohttp-response.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/nanohttp/nanohttp-response.c b/nanohttp/nanohttp-response.c index 64eac44..cb24d10 100755 --- a/nanohttp/nanohttp-response.c +++ b/nanohttp/nanohttp-response.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-response.c,v 1.9 2006/02/27 22:26:02 snowdrop Exp $ +* $Id: nanohttp-response.c,v 1.10 2006/03/06 13:37:38 m0gg Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003-2004 Ferhat Ayaz @@ -146,9 +146,9 @@ _hresponse_parse_header(const char *buffer) herror_t -hresponse_new_from_socket(hsocket_t sock, hresponse_t ** out) +hresponse_new_from_socket(hsocket_t *sock, hresponse_t ** out) { - int i = 0, readed; + int i = 0, count; herror_t status; hresponse_t *res; attachments_t *mimeMessage; @@ -158,8 +158,7 @@ read_header: /* for errorcode: 100 (continue) */ /* Read header */ while (i < MAX_HEADER_SIZE) { - status = hsocket_read(sock, &(buffer[i]), 1, 1, &readed); - if (status != H_OK) + if ((status = hsocket_read(sock, &(buffer[i]), 1, 1, &count)) != H_OK) { log_error1("Socket read error"); return status; |