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

Re: [Libvir] UUID buffer lengths [was Re: Virtual networking]



On Tue, Jan 23, 2007 at 12:37:50PM +0000, Mark McLoughlin wrote:
> On Tue, 2007-01-23 at 11:20 +0100, Karel Zak wrote:
> 
> > +    char uuid[37];
> > 
> >   Magic number? :-)
> > 
> >   #define UUID_STRLEN	36
> > 
> >    char uuid[UUID_STRLEN+1];
> 
> 	Good point. Here's a proposed API addition to put the buffer lengths as
> macros in libvirt.h.
> 
> 	Anyone got objections to that?

  go for it, even if UUID size really should not change :-)

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/


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