Re: DateAndTime

2004-12-28 Thread Elisabeth Gloria
"David T. Perkins" wrote: David> ... the function gmtime should be replaced by the thread-safe versionDavid> called gmtime_r ... I agree   Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone.

Re: 5.2.1 proposal: fix library dependencies and link order

2004-12-28 Thread Coders
On Tue, 28 Dec 2004 16:43:23 -0500 (EST) Igor wrote: IB> Can you make libraries self-contained (net-snmp-config sort of IB> compensates for that)? There seem to be a cyclical dependency between IB> agent and mib libraries, so hopefully your effort will fix this issue. That's exactly what I'm try

Re: 5.2.1 proposal: fix library dependencies and link order

2004-12-28 Thread Igor Brezac
On Tue, 28 Dec 2004, Robert Story wrote: There are currently a few agent related functions remaining in the mib library. With the other recent function shuffling and the current order of the libraries in the link line, I was getting link errors trying to compile the tutorial. The attached patch - m

5.2.1 proposal: fix library dependencies and link order

2004-12-28 Thread Coders
There are currently a few agent related functions remaining in the mib library. With the other recent function shuffling and the current order of the libraries in the link line, I was getting link errors trying to compile the tutorial. The attached patch - moves the smux and should_init code from

Re: DateAndTime

2004-12-28 Thread David T. Perkins
HI, Oh, by the way, I forgot to mention that the function gmtime should be replaced by the thread-safe version called gmtime_r, which has signature: struct tm *gmtime_r(cont time_t *clock, struct tm *result) Ok, I see why you need the length. On Tue, 28 Dec 2004, Elisabeth Gloria wrote: > Hi

Re: DateAndTime

2004-12-28 Thread Elisabeth Gloria
Hi David,   OK, please consider following changed code. I accept you criticism concerning thread safe issue. Concerning 'len', see comments inthe edge of the function. typedef struct snmp_data_and_time_s {  unsigned short year;  unsigned char  month;  unsigned char  day;  unsigned char  hour;  unsi