summaryrefslogtreecommitdiff
path: root/wsutil/unicode-utils.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2014-10-14 11:12:16 -0400
committerBill Meier <wmeier@newsguy.com>2014-10-14 16:45:09 +0000
commit10b83e6931debe1f1f2ea4edce86ddf168995e51 (patch)
treefb8b987b896ded10ce6e1f9a4fa344ccdd987515 /wsutil/unicode-utils.c
parent2359e67f9c42cc285935c70fe8e9cc6b9f369797 (diff)
downloadwireshark-10b83e6931debe1f1f2ea4edce86ddf168995e51.tar.gz
Add editor-modelines; adjust whitespace.
Change-Id: I8cad872cee972a6d22a72852dac57fd188daca84 Reviewed-on: https://code.wireshark.org/review/4683 Reviewed-by: Bill Meier <wmeier@newsguy.com>
Diffstat (limited to 'wsutil/unicode-utils.c')
-rw-r--r--wsutil/unicode-utils.c27
1 files changed, 20 insertions, 7 deletions
diff --git a/wsutil/unicode-utils.c b/wsutil/unicode-utils.c
index 53b89abd0f..c0f4846997 100644
--- a/wsutil/unicode-utils.c
+++ b/wsutil/unicode-utils.c
@@ -101,16 +101,16 @@ utf_8to16(const char *utf8str)
void
utf_8to16_snprintf(TCHAR *utf16buf, gint utf16buf_len, const gchar* fmt, ...)
{
- va_list ap;
- gchar* dst;
+ va_list ap;
+ gchar* dst;
- va_start(ap,fmt);
- dst = g_strdup_vprintf(fmt, ap);
- va_end(ap);
+ va_start(ap,fmt);
+ dst = g_strdup_vprintf(fmt, ap);
+ va_end(ap);
- StringCchPrintf(utf16buf, utf16buf_len, _T("%s"), utf_8to16(dst));
+ StringCchPrintf(utf16buf, utf16buf_len, _T("%s"), utf_8to16(dst));
- g_free(dst);
+ g_free(dst);
}
/* Convert from UTF-16 to UTF-8. */
@@ -169,3 +169,16 @@ arg_list_utf_16to8(int argc, char *argv[]) {
}
#endif
+
+/*
+ * Editor modelines - http://www.wireshark.org/tools/modelines.html
+ *
+ * Local Variables:
+ * c-basic-offset: 2
+ * tab-width: 8
+ * indent-tabs-mode: nil
+ * End:
+ *
+ * ex: set shiftwidth=2 tabstop=8 expandtab:
+ * :indentSize=2:tabSize=8:noTabs=true:
+ */