From: oetiker Date: Sat, 11 Jun 2005 05:27:08 +0000 (+0000) Subject: avoid gcc (3.4.3) warnings char format, different type arg -- Peter Breitenlohner X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=19cf9a088696c5358803b7b07ccf030095c5e54d;p=rrdtool-all.git avoid gcc (3.4.3) warnings char format, different type arg -- Peter Breitenlohner git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@624 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_create.c b/program/src/rrd_create.c index 3e9c68c7..7a08b9c5 100644 --- a/program/src/rrd_create.c +++ b/program/src/rrd_create.c @@ -96,7 +96,7 @@ rrd_create_r(char *filename, long i; int offset; char *token; - unsigned short dummychar1,dummychar2; + char dummychar1[2], dummychar2[2]; unsigned short token_idx, error_flag, period=0; unsigned long hashed_name; @@ -150,9 +150,9 @@ rrd_create_r(char *filename, switch (sscanf(&argv[i][3], DS_NAM_FMT "%1[:]" DST_FMT "%1[:]%n", rrd.ds_def[rrd.stat_head->ds_cnt].ds_nam, - &dummychar1, + dummychar1, rrd.ds_def[rrd.stat_head->ds_cnt].dst, - &dummychar2, + dummychar2, &offset)) { case 0: case 1: rrd_set_error("Invalid DS name"); break;