Navigation Menu

Skip to content

Commit

Permalink
clang: suppress warnings
Browse files Browse the repository at this point in the history
Use "char" instead of "unsigned char" for human readable string.
  • Loading branch information
kou committed Jun 11, 2013
1 parent e7fb7dd commit 9653a40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/groonga_benchmark.c
Expand Up @@ -784,7 +784,7 @@ do_load_command(grn_ctx *ctx, char *command, int type, int task_id,
}

if (report_p(grntest_task[task_id].jobtype)) {
unsigned char tmpbuf[BUF_LEN];
char tmpbuf[BUF_LEN];

if (res_len < BUF_LEN) {
strncpy(tmpbuf, res, res_len);
Expand Down Expand Up @@ -869,7 +869,7 @@ do_command(grn_ctx *ctx, char *command, int type, int task_id)
}

if (report_p(grntest_task[task_id].jobtype)) {
unsigned char tmpbuf[BUF_LEN];
char tmpbuf[BUF_LEN];

if (res_len < BUF_LEN) {
strncpy(tmpbuf, res, res_len);
Expand Down

0 comments on commit 9653a40

Please sign in to comment.