aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2017-02-03 23:06:48 -0500
committerMichael Mann <mmann78@netscape.net>2017-02-05 13:19:46 +0000
commitc7622c9559dde206917990edc46dc1992e434f53 (patch)
treeb447ef4f317755a368c8eec1a33eb77b235812a6 /wsutil
parent4248a97a9b1730ee7b7c09e889c3b8d415624a68 (diff)
pint(.h): Add Modelines and fix indent (use spaces)
Change-Id: Icadbf65ad186c775b2a0ca8596d5bf4ba66e4c68 Reviewed-on: https://code.wireshark.org/review/19873 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/pint.h33
1 files changed, 23 insertions, 10 deletions
diff --git a/wsutil/pint.h b/wsutil/pint.h
index ecea5fc94a..77c448e4b0 100644
--- a/wsutil/pint.h
+++ b/wsutil/pint.h
@@ -124,18 +124,18 @@
*/
#define phton16(p, v) \
- { \
- ((guint8*)(p))[0] = (guint8)((v) >> 8); \
- ((guint8*)(p))[1] = (guint8)((v) >> 0); \
- }
+ { \
+ ((guint8*)(p))[0] = (guint8)((v) >> 8); \
+ ((guint8*)(p))[1] = (guint8)((v) >> 0); \
+ }
#define phton32(p, v) \
- { \
- ((guint8*)(p))[0] = (guint8)((v) >> 24); \
- ((guint8*)(p))[1] = (guint8)((v) >> 16); \
- ((guint8*)(p))[2] = (guint8)((v) >> 8); \
- ((guint8*)(p))[3] = (guint8)((v) >> 0); \
- }
+ { \
+ ((guint8*)(p))[0] = (guint8)((v) >> 24); \
+ ((guint8*)(p))[1] = (guint8)((v) >> 16); \
+ ((guint8*)(p))[2] = (guint8)((v) >> 8); \
+ ((guint8*)(p))[3] = (guint8)((v) >> 0); \
+ }
static inline void phton64(guint8 *p, guint64 v) {
p[0] = (guint8)(v >> 56);
@@ -152,3 +152,16 @@ static inline void phton64(guint8 *p, guint64 v) {
#define guint32_wraparound_diff(higher, lower) ((higher>lower)?(higher-lower):(higher+0xffffffff-lower+1))
#endif /* PINT_H */
+
+/*
+ * Editor modelines - http://www.wireshark.org/tools/modelines.html
+ *
+ * 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:
+ */