fix compile error if OFFLOAD_BOOT_SUPPORT defined

2012-06-21 Thread Lee Duncan
If OFFLOAD_BOOT_SUPPORT is defined, usr/iface.c gets a compile error, fixed by this patch. Signed-off-by: Lee Duncan leeman.dun...@gmail.com -- diff --git a/usr/iface.c b/usr/iface.c index 3a9582e..b7e9760 100644 --- a/usr/iface.c +++ b/usr/iface.c @@ -896,6 +896,9 @@ int

fix compile error if OFFLOAD_BOOT_SUPPORT defined

2012-06-20 Thread Lee Duncan
If OFFLOAD_BOOT_SUPPORT is defined, usr/iface.c gets a compile error, fixed by this patch. Signed-off-by: Lee Duncan leeman.dun...@gmail.com -- diff --git a/usr/iface.c b/usr/iface.c index 3a9582e..b7e9760 100644 --- a/usr/iface.c +++ b/usr/iface.c @@ -896,6 +896,9 @@ int

Re: fix compile error if OFFLOAD_BOOT_SUPPORT defined

2012-06-20 Thread Mike Christie
On 06/20/2012 12:03 PM, Lee Duncan wrote: If OFFLOAD_BOOT_SUPPORT is defined, usr/iface.c gets a compile error, fixed by this patch. How about the attached? It also fixes the warning we have been getting when it is not defined. -- You received this message because you are subscribed to the

Re: fix compile error if OFFLOAD_BOOT_SUPPORT defined

2012-06-20 Thread Lee Duncan
Heh. Your patch looks better to me. I actually prefer declaring variables in the block they are used, but Linux seems to shy away from that. On Jun 20, 2012, at 12:24 PM, Mike Christie wrote: On 06/20/2012 12:03 PM, Lee Duncan wrote: If OFFLOAD_BOOT_SUPPORT is defined, usr/iface.c gets a