int err;
int answer;
u_int8_t answer_end[4];
- int count;
+ size_t count;
int size;
u_int8_t size_end[4];
edg_wll_GssStatus gss_code;
static int real_write(edg_wll_Context ctx, edg_wll_GssConnection *con,const char *data,int len)
{
- int total = 0;
+ size_t total = 0;
struct sigaction sa,osa;
edg_wll_GssStatus gss_code;
int ret;
*----------------------------------------------------------------------
*/
static int send_answer_back(edg_wll_GssConnection *con, int answer, struct timeval *timeout) {
- int count = 0;
+ size_t count = 0;
int err = 0;
int ans = answer;
u_int8_t ans_end[4];
char *buf,*dglllid,*dguser,*jobId,*name_esc;
char header[EDG_WLL_LOG_SOCKET_HEADER_LENGTH+1];
char outfilename[FILENAME_MAX];
- int count,count_total,size;
+ size_t count;
+ int count_total,size;
u_int8_t size_end[4];
size_t msg_size,dglllid_size,dguser_size;
int i,answer,answer_sent;
{
char buffer[17];
char *msg, *p;
- int len, code, l;
+ int inlen, code;
+ size_t len, l;
edg_wll_GssConnection *gss;
struct timeval tv;
edg_wll_GssStatus gss_stat;
buffer[16] = 0;
- sscanf(buffer, "%d", &len);
- if(len > MAXLEN) {
+ sscanf(buffer, "%d", &inlen);
+ if(inlen < 0 || inlen > MAXLEN) {
set_error(IL_PROTO, LB_NOMEM, "get_reply: error reading reply length");
return(-1);
}
+ len = (size_t) inlen;
/* allocate room for message body */
if((msg = malloc(len)) == NULL) {
while (!event_queue_empty(eq)) {
struct server_msg *msg;
char *rep;
- int ret, code, code_min, bytes_sent;
+ int ret, code, code_min;
+ size_t bytes_sent;
struct timeval tv;
edg_wll_GssStatus gss_stat;
{
int ret;
struct sockaddr_un saddr;
- int msg_sock, flags, count;
+ int msg_sock, flags;
+ size_t count;
struct timeval timeout;
timeout.tv_sec = EDG_WLL_LOG_TIMEOUT_MAX;
{
int ret;
struct sockaddr_un saddr;
- int msg_sock, flags, count;
+ int msg_sock, flags;
+ size_t count;
struct timeval timeout;
timeout.tv_sec = EDG_WLL_LOG_TIMEOUT_MAX;
edg_wll_Context ctx = (edg_wll_Context) soap_lookup_plugin(soap, plugin_id);
edg_wll_GssStatus gss_code;
struct sigaction sa, osa;
- int total = 0,
- ret;
+ size_t total = 0;
+ int ret;
edg_wll_ResetError(ctx);