git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@708
959494ce-11ee-0310-bf91-
de5d638817bd
int ret, done;
char *p1, *p2;
size_t len;
int ret, done;
char *p1, *p2;
size_t len;
int errnobak;
/* Ewww... this really is soo ugly. I need to clean this up some day. */
static int pstate = 0;
int errnobak;
/* Ewww... this really is soo ugly. I need to clean this up some day. */
static int pstate = 0;
static size_t cbufsize = 0, cbufdata = 0;
static wchar_t *pptr = NULL;
static wchar_t **argv = NULL;
static size_t cbufsize = 0, cbufdata = 0;
static wchar_t *pptr = NULL;
static wchar_t **argv = NULL;
- static int argc = 0, args = 0;
+ static int argc = 0;
+ static size_t args = 0;
static wchar_t *cw = NULL;
static size_t cwsize = 0, cwdata = 0;
static struct dc_response *curresp = NULL;
static wchar_t *cw = NULL;
static size_t cwsize = 0, cwdata = 0;
static struct dc_response *curresp = NULL;
case -1:
return(-1);
case 0:
case -1:
return(-1);
case 0:
- len = sizeof(ret);
- getsockopt(fd, SOL_SOCKET, SO_ERROR, &ret, &len);
+ optlen = sizeof(ret);
+ getsockopt(fd, SOL_SOCKET, SO_ERROR, &ret, &optlen);
struct command *cmd;
struct respclass *cls;
int code;
struct command *cmd;
struct respclass *cls;
int code;
if((resp->numlines == 0) || (resp->rlines[0].argc == 0) || (resp->curline >= resp->numlines))
return(NULL);
if((resp->numlines == 0) || (resp->rlines[0].argc == 0) || (resp->curline >= resp->numlines))
return(NULL);