Skip to content

Commit

Permalink
clang: suppress warnings
Browse files Browse the repository at this point in the history
Use "unsigned int" for length.
  • Loading branch information
kou committed Jun 11, 2013
1 parent bba8a09 commit e7fb7dd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/groonga_benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ command_send(grn_ctx *ctx, const char *command, int type, int task_id)

static void
command_recv_http(grn_ctx *ctx, int type, int task_id,
char **res, int *res_len, int *flags)
char **res, unsigned int *res_len, int *flags)
{
int len;
char buf[BUF_LEN];
Expand Down Expand Up @@ -705,7 +705,7 @@ command_recv_http(grn_ctx *ctx, int type, int task_id,

static void
command_recv_ctx(grn_ctx *ctx, int type, int task_id,
char **res, int *res_len, int *flags)
char **res, unsigned int *res_len, int *flags)
{
grn_ctx_recv(ctx, res, res_len, flags);
if (ctx->rc) {
Expand All @@ -716,7 +716,7 @@ command_recv_ctx(grn_ctx *ctx, int type, int task_id,

static void
command_recv(grn_ctx *ctx, int type, int task_id,
char **res, int *res_len, int *flags)
char **res, unsigned int *res_len, int *flags)
{
if (http_p(type)) {
command_recv_http(ctx, type, task_id, res, res_len, flags);
Expand All @@ -729,7 +729,8 @@ static int
shutdown_server(void)
{
char *res;
int flags, res_len;
int flags;
unsigned int res_len;
int job_type;
int task_id = 0;

Expand All @@ -753,7 +754,8 @@ do_load_command(grn_ctx *ctx, char *command, int type, int task_id,
long long int *load_start)
{
char *res;
int res_len, flags, ret;
unsigned int res_len;
int flags, ret;
grn_obj start_time, end_time;

GRN_TIME_INIT(&start_time, 0);
Expand Down

0 comments on commit e7fb7dd

Please sign in to comment.