summaryrefslogtreecommitdiffstats
path: root/mpg123_artsplugin
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2019-04-10 14:38:29 +0900
committerOBATA Akio <obache@wizdas.com>2019-04-10 14:38:29 +0900
commit35e5ff35cf0a26eef2a614bfdcf95206bb96ccbb (patch)
tree7579e3e504224b7d00b4429b338d8b0df0667b6c /mpg123_artsplugin
parent06f9b8ef4d9aa4997b2edf253253cc587b73a26a (diff)
downloadtdemultimedia-35e5ff35cf0a26eef2a614bfdcf95206bb96ccbb.tar.gz
tdemultimedia-35e5ff35cf0a26eef2a614bfdcf95206bb96ccbb.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>
Diffstat (limited to 'mpg123_artsplugin')
-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