Re: sscanf (x, "%u", &(uint64_t))
On Sat, 19 Mar 2005, Oswald Buddenhagen wrote:
> On Sat, Mar 19, 2005 at 05:50:14PM +0900, TAKAHASHI Tamotsu wrote:
> > - sscanf(pc, "%u", &(idata->uid_validity));
> > + if (sscanf (pc, "%u", &tmpvalidity) == 1)
> > + idata->uid_validity = tmpvalidity;
> > + else
> > + goto fail;
> >
> how about changing IMAP_DATA.uid_validity to have a sane type? can you
> show me _one_ case where a 64 bit int is required within the next 33
> years?
If you are asking me, "No, I can't."
I don't mind whatever the type of uid_validity
is. I just hate fearful warnings. :)
But I'm afraid that the internal structure of
hcache.c requires uid_validity to be uint64.
Brendan or Thomas Glanzmann would know what
to do. And I don't know what to do.
--
tamo