Changeset d360dc38c160e192db980cc5e10efc487ff11af7

Show
Ignore:
Timestamp:
03/13/12 19:57:10 (2 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1331668630 +0000
git-parent:

[ac6019c188431677637c0179307d13e920e394e1]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1331668630 +0000
Message:

fix compiler warnings due to sign of types across yajl calls

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/httptrap.c

    rbd6d64f rd360dc3  
    329329    if(len > 0) { 
    330330      yajl_status status; 
    331       status = yajl_parse(rxc->parser, buffer, len); 
     331      status = yajl_parse(rxc->parser, (unsigned char *)buffer, len); 
    332332      if(status != yajl_status_ok) { 
    333333        unsigned char *err; 
    334334        *complete = 1; 
    335         err = yajl_get_error(rxc->parser, 0, buffer, len); 
    336         rxc->error = strdup(err); 
     335        err = yajl_get_error(rxc->parser, 0, (unsigned char *)buffer, len); 
     336        rxc->error = strdup((char *)err); 
    337337        yajl_free_error(rxc->parser, err); 
    338338        return rxc;