aboutsummaryrefslogtreecommitdiff
path: root/mainloop.c
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2011-06-21 00:57:08 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2011-06-21 00:57:08 +0200
commitdb145804eaf90e7726edc7ec18fde7ab6f3b8a42 (patch)
treec4b8fb71672ccd5a8089be4d831ad3257945f5a2 /mainloop.c
parent8be52603048f381e7570984593e8d2d17d79f8b9 (diff)
downloadpowerdebug-db145804eaf90e7726edc7ec18fde7ab6f3b8a42.tar.gz
make use of the mainloop code
Use the mainloop we added in the previous patch. Some reorg is needed with the functions, they are moved up and down to prevent forward declarations. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'mainloop.c')
-rw-r--r--mainloop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mainloop.c b/mainloop.c
index d63d703..02dda98 100644
--- a/mainloop.c
+++ b/mainloop.c
@@ -32,7 +32,7 @@ struct mainloop_data **mds;
#define MAX_EVENTS 10
-int _mainloop(unsigned int timeout)
+int mainloop(unsigned int timeout)
{
int i, nfds;
struct epoll_event events[MAX_EVENTS];