diff options
author | Hector Martin | 2009-04-28 02:02:55 +0200 |
---|---|---|
committer | Hector Martin | 2009-04-28 02:02:55 +0200 |
commit | cc9e6a2318352a8fd3a35c25fcb294331ff54288 (patch) | |
tree | 75b891a06a7eddf9674327ae387784b0c64967b0 /utils.c | |
parent | d982007a7350df35c5aeba820a520779694514a7 (diff) | |
download | usbmuxd-cc9e6a2318352a8fd3a35c25fcb294331ff54288.tar.gz usbmuxd-cc9e6a2318352a8fd3a35c25fcb294331ff54288.tar.bz2 |
USB mostly complete, main loop added, polls for devices
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -25,14 +25,14 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #include <stdlib.h> #include "utils.h" -void fdlist_create(fdlist *list) +void fdlist_create(struct fdlist *list) { list->count = 0; list->capacity = 4; list->owners = malloc(sizeof(*list->owners) * list->capacity); list->fds = malloc(sizeof(*list->fds) * list->capacity); } -void fdlist_add(fdlist *list, enum fdowner owner, int fd, short events) +void fdlist_add(struct fdlist *list, enum fdowner owner, int fd, short events) { if(list->count == list->capacity) { list->capacity *= 2; @@ -46,7 +46,7 @@ void fdlist_add(fdlist *list, enum fdowner owner, int fd, short events) list->count++; } -void fdlist_free(fdlist *list) +void fdlist_free(struct fdlist *list) { list->count = 0; list->capacity = 0; |