aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-08-22 06:36:51 +0000
committerEric Wong <normalperson@yhbt.net>2006-08-22 06:36:51 +0000
commit504d3425f2270aa07e81a2f8114fe3a6268e960c (patch)
treea3f1deacb9ed1ff800854e2f63e60444463d2256 /src/utils.h
parent72c12ff7680e21929ea528ac304fcccdbd7a2664 (diff)
downloadmpd-504d3425f2270aa07e81a2f8114fe3a6268e960c.tar.gz
mpd-504d3425f2270aa07e81a2f8114fe3a6268e960c.tar.xz
mpd-504d3425f2270aa07e81a2f8114fe3a6268e960c.zip
get rid of the pointless xopen wrapper, open(2) does not throw errno = EINTR
git-svn-id: https://svn.musicpd.org/mpd/trunk@4663 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/utils.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/utils.h b/src/utils.h
index d39c8e283..28b2845c6 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -46,13 +46,6 @@ char *appendToString(char *dest, const char *src);
unsigned long readLEuint32(const unsigned char *p);
/* trivial functions, keep them inlined */
-static inline int xopen(const char *path, int flags, mode_t mode)
-{
- int fd;
- while(0>(fd = open(path,flags,mode)) && errno == EINTR);
- return fd;
-}
-
static inline void xclose(int fd)
{
while (close(fd) && errno == EINTR);