summaryrefslogtreecommitdiff
path: root/libusb/sync.c
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2020-01-22 15:53:17 -0800
committerChris Dickens <christopher.a.dickens@gmail.com>2020-01-24 11:21:27 -0800
commitaaff15d48d1b8555aabf012b06bf39bf8aa4768a (patch)
tree1eebfa64f672df87806852b00afb2b924b4b5eae /libusb/sync.c
parent325e5ac8ddf2cb100a47e39185bc9f134d3b2f98 (diff)
downloadlibusb-aaff15d48d1b8555aabf012b06bf39bf8aa4768a.tar.gz
Misc: Trim and consolidate header file usage
Refactor libusbi.h to include the set of common header files needed by every main source file in the library and change these source files to include libusbi.h first, followed by any non-common headers. Including libusbi.h first ensures that the config definitions are pulled in and will eliminate redundant includes in the individual sources files. Also clean up some whitespace errors and remove unnecessary definitions in the manually generated config.h files. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/sync.c')
-rw-r--r--libusb/sync.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libusb/sync.c b/libusb/sync.c
index 863fe5c..68774c6 100644
--- a/libusb/sync.c
+++ b/libusb/sync.c
@@ -20,15 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <config.h>
+#include "libusbi.h"
-#include <errno.h>
-#include <stdint.h>
-#include <stdlib.h>
#include <string.h>
-#include "libusbi.h"
-
/**
* @defgroup libusb_syncio Synchronous device I/O
*