Skip to content

Commit

Permalink
staging: usbip: userspace: usbip_common.h: fixup header includes
Browse files Browse the repository at this point in the history
Remove unnecessary headers from the file, and add the now missing
headers into the files that actually need them.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
matt mooney authored and Greg Kroah-Hartman committed Jul 6, 2011
1 parent 93e18e0 commit 4fd83e8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/usbip/userspace/libsrc/stub_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include <sys/types.h>
#include <sys/stat.h>

#include <errno.h>
#include <unistd.h>

#include "usbip.h"
Expand Down
18 changes: 8 additions & 10 deletions drivers/staging/usbip/userspace/libsrc/usbip_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@
* Copyright (C) 2005-2007 Takahiro Hirofuchi
*/

#ifndef _USBIP_COMMON_H
#define _USBIP_COMMON_H
#ifndef __USBIP_COMMON_H
#define __USBIP_COMMON_H

#include <sysfs/libsysfs.h>

#include <unistd.h>
#include <stdint.h>
#include <syslog.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>

#include <sysfs/libsysfs.h>
#include <netdb.h>
#include <sys/socket.h>
#include <syslog.h>
#include <unistd.h>

#ifndef USBIDS_FILE
#define USBIDS_FILE "/usr/share/hwdata/usb.ids"
Expand Down Expand Up @@ -146,4 +144,4 @@ void usbip_names_free(void);
void usbip_names_get_product(char *buff, size_t size, uint16_t vendor, uint16_t product);
void usbip_names_get_class(char *buff, size_t size, uint8_t class, uint8_t subclass, uint8_t protocol);

#endif
#endif /* __USBIP_COMMON_H */
1 change: 1 addition & 0 deletions drivers/staging/usbip/userspace/src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <sysfs/libsysfs.h>

#include <limits.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>

Expand Down

0 comments on commit 4fd83e8

Please sign in to comment.