freeipmi-devel
[Top][All Lists]
Advanced

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

Re: [Freeipmi-devel] fiid_obj_alloc -> fiid_obj_malloc


From: Anand Babu
Subject: Re: [Freeipmi-devel] fiid_obj_alloc -> fiid_obj_malloc
Date: Tue, 13 Dec 2005 15:02:15 -0800
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

,----[ Albert Chu <address@hidden> ]
| After having some difficulties using the fiid interface recently, it
| sort of makes sense to me that this should be changed for consistency
| with the rest of the library.  'alloc' is not a libc function, so this
| function does not match any of the other fiid functions that emulate
| their libc equivalents (i.e. fiid_obj_memset and memset, fiid_obj_alloca
| and alloca).  Also, 'alloc' is a bit confusing, b/c you don't know if it
| means "alloca" or "malloc" (and underneath, it actually calls calloc :P).
| >
| It's just a thought.  We could make a backwards compatability function
| that points fiid_obj_alloc to fiid_obj_malloc.
`----

Make sense, I don't know why I named it so. I will rename to xxx_malloc
and have a macro to alloc for compatibility (for a while). 
-- 
Anand Babu 
GPG Key ID: 0x62E15A31
Blog [http://ab.freeshell.org]              
The GNU Operating System [http://www.gnu.org]  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]