diff options
author | Max Kellermann <max@duempel.org> | 2009-02-19 13:33:03 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-19 13:33:03 +0100 |
commit | e7131b5da256c3d9472e3e3fdb826ae14da13188 (patch) | |
tree | 626025b6c71b139b1ab1054e8d0ea495fe53ff69 /src/utils.c | |
parent | c228635489fad76321e1718a53220e7b0b095e98 (diff) | |
download | mpd-e7131b5da256c3d9472e3e3fdb826ae14da13188.tar.gz mpd-e7131b5da256c3d9472e3e3fdb826ae14da13188.tar.xz mpd-e7131b5da256c3d9472e3e3fdb826ae14da13188.zip |
utils: use g_usleep() instead of my_usleep()
Now that I've found this nice function in the GLib docs, we can
finally remove our custom sleep function. Still all those callers of
g_usleep() have to be migrated one day to use events, instead of
regular polling.
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/utils.c b/src/utils.c index ce9a09f72..7705cf798 100644 --- a/src/utils.c +++ b/src/utils.c @@ -40,20 +40,6 @@ #include <windows.h> #endif -void my_usleep(long usec) -{ -#ifdef WIN32 - Sleep(usec / 1000); -#else - struct timeval tv; - - tv.tv_sec = 0; - tv.tv_usec = usec; - - select(0, NULL, NULL, NULL, &tv); -#endif -} - char *parsePath(char *path) { #ifndef WIN32 |