Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=feb391482f10c190b1ac59e8374faa42f4543e07

commit feb391482f10c190b1ac59e8374faa42f4543e07
Author: James Buren <[email protected]>
Date:   Sat Mar 2 07:11:23 2013 -0600

fix pointer alignment with bsearch usage
close a file pointer I forgot about

diff --git a/new/fwsetup/layout.c b/new/fwsetup/layout.c
index b74aee2..a4df6cd 100644
--- a/new/fwsetup/layout.c
+++ b/new/fwsetup/layout.c
@@ -126,6 +126,8 @@ static bool layout_setup(void)
}
while(i > 0);

+  fclose(file);
+
return true;
}

@@ -141,7 +143,7 @@ static bool layout_do_layout(void)
for( ; layouts[i] != 0 ; ++i )
;

-  if((layout = bsearch(entry,layouts,i,sizeof(struct layout 
*),bsearch_compare)) == 0)
+  if((layout = *(struct layout **) bsearch(entry,layouts,i,sizeof(struct 
layout *),bsearch_compare)) == 0)
{
error("no matching layout");
return false;
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to