bug-hurd
[Top][All Lists]
Advanced

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

[PATCH 19/68] i386/i386/ldt.c: remove useless forward declaration withou


From: Marin Ramesa
Subject: [PATCH 19/68] i386/i386/ldt.c: remove useless forward declaration without definition
Date: Fri, 29 Nov 2013 22:53:44 +0100

* i386/i386/ldt.c (syscall): Remove forward declaration.
(syscall): New variable.

---
 i386/i386/ldt.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/i386/i386/ldt.c b/i386/i386/ldt.c
index 43b9efb..37f09fb 100644
--- a/i386/i386/ldt.c
+++ b/i386/i386/ldt.c
@@ -37,8 +37,6 @@
 #include "gdt.h"
 #include "ldt.h"
 
-extern int syscall();
-
 #ifdef MACH_PV_DESCRIPTORS
 /* It is actually defined in xen_boothdr.S */
 extern
@@ -60,6 +58,7 @@ ldt_init()
 #endif /* MACH_PV_DESCRIPTORS */
 
        /* Initialize the LDT descriptors.  */
+       int syscall;
        fill_ldt_gate(USER_SCALL,
                      (vm_offset_t)&syscall, KERNEL_CS,
                      ACC_PL_U|ACC_CALL_GATE, 0);
-- 
1.8.1.4




reply via email to

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