BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} wrong history



Humm, I think I know what's the problem...

fscanf(file,"%ld",&variable) requires an 8 byte variable
(because of the 'l' in %ld) which is probably what the size of a
long in a 64bit machine.

actually, this should work without using the "long" fix:

fscanf(bbhist, "%d", &lasttime);

don't know why I used "%ld", there must be a reason but
I can't remember (checking old sources back to 1.3 and it's
always been that way).

bye

Matthias Schreiber wrote:


Hope this helps you to understand a bit more...
As for now it seems that the "hack" with long for lasttime is working for
me...

Bye - and thanks...
Matthias



-- Robert-Andre Croteau BSD,MOTU Quest Software, Inc. Big Brother, Product Architect http://www.quest.com/ http://bb4.com/ +1 (514) 238-9374 Si le bonheur ne s'achete pas alors louez le.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index