bug-hurd
[Top][All Lists]
Advanced

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

[PATCH mig] Change x_server_routine functions to "static inline" for -st


From: David Michael
Subject: [PATCH mig] Change x_server_routine functions to "static inline" for -std=gnu11
Date: Sun, 10 May 2015 22:30:04 -0400

* header.c (WriteServerHeader): Replace "extern" with "static".
* server.c (WriteEpilog): Remove WriteSubsystemServerRoutine call.
---
 header.c | 2 +-
 server.c | 6 ------
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/header.c b/header.c
index 23e5686..3af9746 100644
--- a/header.c
+++ b/header.c
@@ -178,7 +178,7 @@ WriteServerHeader(FILE *file, const statement_t *stats)
      * Include the x_server_routine function so it can be inlined.
      */
     fprintf(file, "extern mig_routine_t %s_routines[];\n", ServerDemux);
-    WriteSubsystemServerRoutine(file, "extern inline");
+    WriteSubsystemServerRoutine(file, "static inline");
 
     WriteEpilog(file, protect);
 }
diff --git a/server.c b/server.c
index 15fc128..a08795b 100644
--- a/server.c
+++ b/server.c
@@ -216,12 +216,6 @@ WriteEpilog(FILE *file, const statement_t *stats)
     fprintf(file, "}\n");
     fprintf(file, "\n");
 
-    /*
-     * Then, the <subsystem>_server_routine routine
-     */
-    WriteSubsystemServerRoutine(file, "mig_external");
-    fprintf(file, "\n");
-
     /* symtab */
 
     if (GenSymTab) {
-- 
2.1.0




reply via email to

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