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

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

 



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@xxxxxxxxxx  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]