aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Curtin <ericcurtin17@gmail.com>2020-01-29 14:59:24 +0000
committerEric Curtin <ericcurtin17@gmail.com>2020-01-29 14:59:24 +0000
commit645074485ea55b443fd3072c403301bbf047b4f0 (patch)
treed7fb92bfdf4e7986c2c83fbf92d3bc07c370cd16
parent6c8af3c5296b2d847653d4c46f208329e6c617c2 (diff)
downloadinotify-tools-645074485ea55b443fd3072c403301bbf047b4f0.zip
inotify-tools-645074485ea55b443fd3072c403301bbf047b4f0.tar.gz
inotify-tools-645074485ea55b443fd3072c403301bbf047b4f0.tar.bz2
Use standard flexible array member C code introduced in C99
[] rather than __flexarr
-rw-r--r--libinotifytools/src/inotifytools/inotify-nosys.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libinotifytools/src/inotifytools/inotify-nosys.h b/libinotifytools/src/inotifytools/inotify-nosys.h
index a014808..592fad0 100644
--- a/libinotifytools/src/inotifytools/inotify-nosys.h
+++ b/libinotifytools/src/inotifytools/inotify-nosys.h
@@ -29,7 +29,7 @@ struct inotify_event {
uint32_t mask; /* watch mask */
uint32_t cookie; /* cookie to synchronize two events */
uint32_t len; /* length (including nulls) of name */
- char name __flexarr; /* stub for possible name */
+ char name[]; /* stub for possible name */
};
/* the following are legal, implemented events that user-space can watch for */