aboutsummaryrefslogtreecommitdiff
path: root/sim/common/dv-sockser.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-01-02 10:53:03 -0500
committerMike Frysinger <vapier@gentoo.org>2021-05-01 22:46:46 -0400
commit328e805b5a7d4f27552a1062e25a89477bd89009 (patch)
tree0532236be2a3d105034f3ed30e1e3b818fbc6b91 /sim/common/dv-sockser.c
parentadbaa7b838d3f6de95ca2ec15d9ca419a383d2d4 (diff)
downloadbinutils-328e805b5a7d4f27552a1062e25a89477bd89009.zip
binutils-328e805b5a7d4f27552a1062e25a89477bd89009.tar.gz
binutils-328e805b5a7d4f27552a1062e25a89477bd89009.tar.bz2
sim: dv-sockser: localize init callback
Now that we don't need to hardcode the module init list in a single place, move the dv-sockser logic to the place to the one file.
Diffstat (limited to 'sim/common/dv-sockser.c')
-rw-r--r--sim/common/dv-sockser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sim/common/dv-sockser.c b/sim/common/dv-sockser.c
index fc552fa..73c473b 100644
--- a/sim/common/dv-sockser.c
+++ b/sim/common/dv-sockser.c
@@ -222,8 +222,11 @@ dv_sockser_uninstall (SIM_DESC sd)
}
}
+/* Provide a prototype to silence -Wmissing-prototypes. */
+extern MODULE_INIT_FN sim_install_dv_sockser;
+
SIM_RC
-dv_sockser_install (SIM_DESC sd)
+sim_install_dv_sockser (SIM_DESC sd)
{
SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
if (sim_add_option_table (sd, NULL, sockser_options) != SIM_RC_OK)