Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259504
b: refs/heads/master
c: 4cbab52
h: refs/heads/master
v: v3
  • Loading branch information
matt mooney authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent 98ea7d7 commit 8eab6dc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 950a4cd8fcc61ffc7bb8cd5890e80e7459e22597
refs/heads/master: 4cbab52d18fc35e3c66f68e0382cd0815d31bb5f
3 changes: 2 additions & 1 deletion trunk/drivers/staging/usbip/userspace/src/usbip_bind.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@

#include <sysfs/libsysfs.h>

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

#include <getopt.h>
#include <fcntl.h>
#include <getopt.h>
#include <unistd.h>

#include "usbip_common.h"
Expand Down
6 changes: 5 additions & 1 deletion trunk/drivers/staging/usbip/userspace/src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
*/

#include <sysfs/libsysfs.h>

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

#include <fcntl.h>
#include <libgen.h>
#include <string.h>
#include <unistd.h>

#include "usbip_common.h"
Expand Down
25 changes: 4 additions & 21 deletions trunk/drivers/staging/usbip/userspace/src/utils.h
Original file line number Diff line number Diff line change
@@ -1,26 +1,7 @@
#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 <time.h>
#include <errno.h>



/* Be sync to kernel header */
#define BUS_ID_SIZE 20
Expand All @@ -37,3 +18,5 @@ int write_bConfigurationValue(char *busid, int config);
int read_bDeviceClass(char *busid);
int readline(int sockfd, char *str, int strlen);
int writeline(int sockfd, char *buff, int bufflen);

#endif /* __UTILS_H */

0 comments on commit 8eab6dc

Please sign in to comment.