summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2013-11-17 14:03:32 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2013-11-17 14:03:32 +0000
commit02284a79885960cadc8492bdf7fa174ea719853f (patch)
treecc53328bafcde70e51c4a78fab23f183b0905bfb
parent983ea7664c904c666498fd34f13b81cc2eca2f5a (diff)
downloadwireshark-02284a79885960cadc8492bdf7fa174ea719853f.tar.gz
Fix indent (use 4 spaces) and add modelines
svn path=/trunk/; revision=53388
-rw-r--r--epan/plugins.c26
-rw-r--r--epan/plugins.h13
2 files changed, 32 insertions, 7 deletions
diff --git a/epan/plugins.c b/epan/plugins.c
index 51955e06ca..1104267118 100644
--- a/epan/plugins.c
+++ b/epan/plugins.c
@@ -71,7 +71,7 @@ static void register_all_codecs(void);
static int
add_plugin(void *handle, gchar *name, gchar *version,
void (*register_protoinfo)(void),
- void (*reg_handoff)(void),
+ void (*reg_handoff)(void),
void (*register_tap_listener)(void),
void (*register_wtap_module)(void),
void (*register_codec_module)(void))
@@ -83,7 +83,7 @@ add_plugin(void *handle, gchar *name, gchar *version,
{
new_plug = (plugin *)g_malloc(sizeof(plugin));
if (new_plug == NULL)
- return ENOMEM;
+ return ENOMEM;
plugin_list = new_plug;
}
else
@@ -99,13 +99,13 @@ add_plugin(void *handle, gchar *name, gchar *version,
/* we found the last plugin in the list */
if (pt_plug->next == NULL)
- break;
+ break;
pt_plug = pt_plug->next;
}
new_plug = (plugin *)g_malloc(sizeof(plugin));
if (new_plug == NULL)
- return ENOMEM;
+ return ENOMEM;
pt_plug->next = new_plug;
}
@@ -508,7 +508,7 @@ register_all_codecs(void)
}
}
-#endif /* big HAVE_PLUGINS */
+#endif /* big HAVE_PLUGINS */
/*
* Dump plugin info to stdout. Copied from ui/gtk/plugins_dlg.c:plugins_scan.
@@ -529,7 +529,7 @@ plugins_dump_all(void)
{
sep = "";
- printf("%s\t%s\t", pt_plug->name, pt_plug->version);
+ printf("%s\t%s\t", pt_plug->name, pt_plug->version);
if (pt_plug->register_protoinfo)
{
printf("dissector");
@@ -549,7 +549,7 @@ plugins_dump_all(void)
{
printf("%scodec", sep);
}
- printf("\t%s\n", g_module_name(pt_plug->handle));
+ printf("\t%s\n", g_module_name(pt_plug->handle));
}
#endif
@@ -561,3 +561,15 @@ plugins_dump_all(void)
#endif
}
+/*
+ * Editor modelines
+ *
+ * Local Variables:
+ * c-basic-offset: 4
+ * tab-width: 8
+ * indent-tabs-mode: nil
+ * End:
+ *
+ * ex: set shiftwidth=4 tabstop=8 expandtab:
+ * :indentSize=4:tabSize=8:noTabs=true:
+ */
diff --git a/epan/plugins.h b/epan/plugins.h
index 4ac73bc5ab..10a4f5bfff 100644
--- a/epan/plugins.h
+++ b/epan/plugins.h
@@ -69,3 +69,16 @@ WS_DLL_PUBLIC wslua_plugin *wslua_plugin_list;
#endif /* __cplusplus */
#endif /* __PLUGINS_H__ */
+
+/*
+ * Editor modelines
+ *
+ * Local Variables:
+ * c-basic-offset: 4
+ * tab-width: 8
+ * indent-tabs-mode: nil
+ * End:
+ *
+ * ex: set shiftwidth=4 tabstop=8 expandtab:
+ * :indentSize=4:tabSize=8:noTabs=true:
+ */