On Mon, Nov 10, 2003 at 09:17:50AM +0100, Pitisi wrote:
Hi Didier.
> seems to work without adding a NULL pointer as the last
> parameter, but I keep it since it doesn't cost a lot!
I guess it worked before, because the memory area at
cmd_update[5] was set to NULL by your system.
Perhaps you calloc()ed it?
Anyway. Adding the NULL pointer at the end doesn't
cost a lot and is easy.

> I found out another strange thing:
> before a call to rrd_update I print my command line:
> for ( i = 0; i < 5; i++)
>     printf("%s ",cmd_update[i]);
> 
> and I have on the screen:
> update fic.rrd --template DSName 1067264490:5.500000
> and that's correct
> 
> Then I call:
> rrd_update(5,cmd_update);
> 
> And, just after, print my command line one  more time with the same
> instructions, and I have:
> update --template DSName fic.rrd 1067264490:5.500000
> 
> Parameter 2 (fic.rrd) is now in 4th position ! ! ! ! !
Don't worry.
The position doesn't matter.

> Do you have an explanation for that??
I guess it is the getopt_long call inside the rrd_*() call that changes the
order of the arguments. It's nothing I would worry about.

> Thank you for your help
Nevermind.

So long ... Andreas.

-- 
Dipl.-Ing. Andreas Maus             science+computing ag
System Administration               Hagellocher Weg 71-75
mail: [EMAIL PROTECTED]   72070 Tuebingen, Germany
tel.: +49 7071 9457 456             www.science-computing.de

-- Binary/unsupported file stripped by Ecartis --
-- Err : No filename to use for decode, file stripped.
-- Type: application/pgp-signature


--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to