Generate connection UUID in inital ifcfg files created by anaconda (#705328)
Ack with one minor nit. If you're going to use a char *, use free(). If
you are going to use g_free(), use a gchar *. Yes, glib falls through to
free() for now, but there's nothing that says it has to. The APIs are
separate for a reason. glib could up and change to a new allocator at
some point and that would be an unwelcome surprise.
--
David Cantrell <dcantrell@redhat.com>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Westford, MA | EST5EDT
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
02-16-2012, 06:46 AM
Radek Vykydal
Generate connection UUID in inital ifcfg files created by anaconda (#705328)
On 02/15/2012 07:35 PM, David Cantrell wrote:
Ack with one minor nit. If you're going to use a char *, use free(). If
you are going to use g_free(), use a gchar *. Yes, glib falls through to
free() for now, but there's nothing that says it has to. The APIs are
separate for a reason. glib could up and change to a new allocator at
some point and that would be an unwelcome surprise.
nm-utils library reference says use g_free():
http://developer.gnome.org/libnm-util/unstable/libnm-util-nm-utils.html#nm-utils-uuid-generate
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
02-16-2012, 01:10 PM
David Cantrell
Generate connection UUID in inital ifcfg files created by anaconda (#705328)
On Thu, Feb 16, 2012 at 08:46:59AM +0100, Radek Vykydal wrote:
> On 02/15/2012 07:35 PM, David Cantrell wrote:
> >Ack with one minor nit. If you're going to use a char *, use free(). If
> >you are going to use g_free(), use a gchar *. Yes, glib falls through to
> >free() for now, but there's nothing that says it has to. The APIs are
> >separate for a reason. glib could up and change to a new allocator at
> >some point and that would be an unwelcome surprise.
>
> nm-utils library reference says use g_free():
> http://developer.gnome.org/libnm-util/unstable/libnm-util-nm-utils.html#nm-utils-uuid-generate
Yeah, alright.
--
David Cantrell <dcantrell@redhat.com>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Westford, MA | EST5EDT
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list