SCO patch attempt.

mouring at etoh.eviladmin.org mouring at etoh.eviladmin.org
Sun Jan 14 08:42:26 EST 2001


On Sat, 13 Jan 2001, Markus Friedl wrote:

> On Thu, Jan 11, 2001 at 10:00:26PM -0600, mouring at etoh.eviladmin.org wrote:
> > +#ifdef HAVE_U_INT64_T
> >  u_int64_t
> >  buffer_get_int64(Buffer *buffer)
> >  {
> > @@ -159,6 +160,7 @@
> >  	buffer_get(buffer, (char *) buf, 8);
> >  	return GET_64BIT(buf);
> >  }
> > +#endif
> 
> wouldn't it be simpler to
> 	typedef u_int32_t u_int64_t;
> and check whether the first 4 bytes are != 0 ?
> 
I started going down that path originally, but I could not see a 
reasonable way of doing error checking.  Hmm.. Unless I report errors on
on 'errno' (Because it's pretty hard to return -1 on an unsigned int =).

I'll take another look at that method in a day or so.

- Ben






More information about the openssh-unix-dev mailing list