Commit 4cbab52d authored by matt mooney's avatar matt mooney Committed by Greg Kroah-Hartman

staging: usbip: userspace: move header includes out utils.h

The includes have been moved out of utils.h to their respective source
files where they are suppose to be. An include guard is also added to
utils.h
Signed-off-by: default avatarmatt mooney <mfm@muteddisk.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 950a4cd8
...@@ -18,11 +18,12 @@ ...@@ -18,11 +18,12 @@
#include <sysfs/libsysfs.h> #include <sysfs/libsysfs.h>
#include <limits.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <getopt.h>
#include <fcntl.h> #include <fcntl.h>
#include <getopt.h>
#include <unistd.h> #include <unistd.h>
#include "usbip_common.h" #include "usbip_common.h"
......
...@@ -4,9 +4,13 @@ ...@@ -4,9 +4,13 @@
*/ */
#include <sysfs/libsysfs.h> #include <sysfs/libsysfs.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include <libgen.h> #include <libgen.h>
#include <string.h>
#include <unistd.h> #include <unistd.h>
#include "usbip_common.h" #include "usbip_common.h"
......
#ifndef __UTILS_H
#define __UTILS_H
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#define _GNU_SOURCE
#include <string.h>
#include <sys/un.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sysfs/libsysfs.h>
#include <glib.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h> #include <stdlib.h>
#include <time.h>
#include <errno.h>
/* Be sync to kernel header */ /* Be sync to kernel header */
#define BUS_ID_SIZE 20 #define BUS_ID_SIZE 20
...@@ -37,3 +18,5 @@ int write_bConfigurationValue(char *busid, int config); ...@@ -37,3 +18,5 @@ int write_bConfigurationValue(char *busid, int config);
int read_bDeviceClass(char *busid); int read_bDeviceClass(char *busid);
int readline(int sockfd, char *str, int strlen); int readline(int sockfd, char *str, int strlen);
int writeline(int sockfd, char *buff, int bufflen); int writeline(int sockfd, char *buff, int bufflen);
#endif /* __UTILS_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment