summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2019-04-10 14:38:29 +0900
committerSlávek Banko <slavek.banko@axis.cz>2019-04-11 02:59:46 +0200
commit6b55b7c1c490267c8dc7c6eff4bd0275b73e8213 (patch)
tree69cb63df3bee0c9db8ae4f63d6ea7e71cc9acc75
parent267ac73b42ce9e1ecdbf6b7cee2ef8cd55a23cdc (diff)
downloadtdemultimedia-6b55b7c1c490267c8dc7c6eff4bd0275b73e8213.tar.gz
tdemultimedia-6b55b7c1c490267c8dc7c6eff4bd0275b73e8213.zip
Remove traditional `errno` usage
On modern POSIX environments, `errno` may not be simple `int` type, and <errno.h> is sufficient for `errno` and its symbolic values. Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit 35e5ff35cf0a26eef2a614bfdcf95206bb96ccbb)
-rw-r--r--mpg123_artsplugin/mpg123/httpget.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mpg123_artsplugin/mpg123/httpget.c b/mpg123_artsplugin/mpg123/httpget.c
index 71750115..3cf22e78 100644
--- a/mpg123_artsplugin/mpg123/httpget.c
+++ b/mpg123_artsplugin/mpg123/httpget.c
@@ -18,11 +18,9 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <ctype.h>
-extern int errno;
-
#include "mpg123.h"
#ifndef INADDR_NONE