summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Michael <fedora.dm0@gmail.com>2015-05-10 22:30:04 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-06-05 21:01:40 +0530
commit23e8415d63e0b1b7641a6aff3646536b7395eb91 (patch)
treedb9200a22506d5a46704c599166a4289c3b1b34a
parentb165f41edfab4deaf36c2ccc44280e49463e7999 (diff)
Change x_server_routine functions to "static inline" for -std=gnu11
* header.c (WriteServerHeader): Replace "extern" with "static". * server.c (WriteEpilog): Remove WriteSubsystemServerRoutine call.
-rw-r--r--header.c2
-rw-r--r--server.c6
2 files changed, 1 insertions, 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) {