summaryrefslogtreecommitdiff
path: root/wiretap/logcat.h
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2014-07-23 12:26:05 +0200
committerMichal Labedzki <michal.labedzki@tieto.com>2014-09-22 10:52:03 +0000
commit56a09d24dcdcaddae1cb67a18bbc2fd588c427ed (patch)
treea9961e4700a00680f7247d714709e6164f9e5d9d /wiretap/logcat.h
parentc1d6a4123a2e100a77ae8ec2b3d01544f168febc (diff)
downloadwireshark-56a09d24dcdcaddae1cb67a18bbc2fd588c427ed.tar.gz
Try to fix some buildbot warnings
Most interesting are: warning: cannot optimize loop, the loop counter may overflow [-Wunsafe-loop-optimizations] warning: ISO C forbids zero-size array [-Wpedantic] warning: ISO C90 doesn't support unnamed structs/unions [-Wpedantic] warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual warning: initializer element is not computable at load time [enabled by default] Change-Id: I5573c6bdca856a304877d9bef643f8c0fa93cdaf Reviewed-on: https://code.wireshark.org/review/3174 Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'wiretap/logcat.h')
-rw-r--r--wiretap/logcat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/logcat.h b/wiretap/logcat.h
index 9b2ea5cc25..71a0e7da5b 100644
--- a/wiretap/logcat.h
+++ b/wiretap/logcat.h
@@ -39,7 +39,7 @@ struct logger_entry {
gint32 tid; /* generating process's tid */
gint32 sec; /* seconds since Epoch */
gint32 nsec; /* nanoseconds */
- char msg[0]; /* the entry's payload */
+/* char msg[0]; *//* the entry's payload */
};
struct logger_entry_v2 {
@@ -53,8 +53,8 @@ struct logger_entry_v2 {
/* v1: not present */
guint32 euid; /* v2: effective UID of logger */
guint32 lid; /* v3: log id of the payload */
- };
- char msg[0]; /* the entry's payload */
+ } id;
+/* char msg[0]; *//* the entry's payload */
};
int logcat_open(wtap *wth, int *err, gchar **err_info);