Skip to contentSkip to conversation

Prototype ifdown() in kexec.h, not nested in main().

PATCH In review Jamey Sharp 2 participants 2 messages May 16, 2008 – May 21, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Prototype ifdown() in kexec.h, not nested in main().

---
Another generic patch extracted from my Windows porting work.

 kexec/kexec.c |    3 +--
 kexec/kexec.h |    2 ++
 2 files changed, 3 insertions(+), 2 deletions(-)
kexec/kexec.c +1 -2
index f898428..de9765e 100644
@@ -956,8 +956,7 @@ int main(int argc, char *argv[])
 		sync();
 	}
 	if ((result == 0) && do_ifdown) {
-		extern int ifdown(void);
-		(void)ifdown();
+		ifdown();
 	}
 	if ((result == 0) && do_exec) {
 		result = my_exec();
kexec/kexec.h +2 -0
index 2d3a748..9b45476 100644
@@ -209,6 +209,8 @@ extern unsigned long add_buffer_phys_virt(struct kexec_info *info,
 	int buf_end, int phys);
 extern void arch_reuse_initrd(void);
 
+extern int ifdown(void);
+
 extern unsigned char purgatory[];
 extern size_t purgatory_size;
 
Signature · 7 lines
1.5.4.1


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
#1 lore raw
Quoted 3 lines · Jamey Sharp

---
Another generic patch extracted from my Windows porting work.

Thanks for cleaning up that abomination.
Applied.

Signature · 7 lines
Horms


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec