diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-11-06 19:20:37 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-11-07 21:52:23 +0000 |
commit | 0162e54075bb7ad967a85736b3c8addd53d86de5 (patch) | |
tree | 8a621af4c54f0d11b610b6842c9f53aae849e68a /epan/dissectors | |
parent | 24bfb7e35d619c004e0458f38a1d5ae538a898fb (diff) |
Clean up includes of unistd.h, fcntl.h, and sys/stat.h.
Have wsutil/file_util.h include them on UN*X, just as it includes io.h
on Windows, so we can have a rule of "if you do file operations, include
<wsutil/file_util.h> and use the routines in it".
Remove includes of unistd.h, fcntl.h, and sys/stat.h that aren't
necessary (whether because of the addition of them to wsutil/file_util.h
or because they weren't needed in the first place).
Change-Id: Ie241dd74deff284e39a5f690a297dbb6e1dc485f
Reviewed-on: https://code.wireshark.org/review/11619
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-lmp.c | 4 | ||||
-rw-r--r-- | epan/dissectors/packet-rsvp.c | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/epan/dissectors/packet-lmp.c b/epan/dissectors/packet-lmp.c index 5257386d21..d6bf8141c8 100644 --- a/epan/dissectors/packet-lmp.c +++ b/epan/dissectors/packet-lmp.c @@ -40,10 +40,6 @@ #include "config.h" -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - #include <epan/packet.h> #include <epan/exceptions.h> #include <epan/prefs.h> diff --git a/epan/dissectors/packet-rsvp.c b/epan/dissectors/packet-rsvp.c index 2fb50d5e27..80e37e0142 100644 --- a/epan/dissectors/packet-rsvp.c +++ b/epan/dissectors/packet-rsvp.c @@ -94,10 +94,6 @@ #include "config.h" -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - #include <epan/packet.h> #include <epan/expert.h> #include <epan/exceptions.h> |