On Mon, 2011-03-21 at 14:14 +0100, David Hedberg wrote:
+static void msi_patch_offset_list_init(struct msi_patch_offset_list **pos) +{
- *pos = msi_alloc(sizeof(struct msi_patch_offset_list));
- list_init( &(*pos)->files );
- (*pos)->count = (*pos)->max = 0;
- (*pos)->min = 999999;
+}
It would be nicer to have a _create function that returns an initialized structure.