From e1470031b15c6af1dcc78cba7110f0ae04869bec Mon Sep 17 00:00:00 2001 From: oetiker Date: Sat, 11 Jun 2005 05:27:08 +0000 Subject: [PATCH] avoid gcc (3.4.3) warnings char format, different type arg -- Peter Breitenlohner git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@624 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_create.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rrd_create.c b/src/rrd_create.c index 3e9c68c..7a08b9c 100644 --- a/src/rrd_create.c +++ b/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; -- 2.11.0