aboutsummaryrefslogtreecommitdiff
path: root/qemu-sockets.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-22 20:04:24 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-22 20:04:24 +0000
commit47398b9c3681ebcd4eb942e732628cdfb172664e (patch)
treefc69fbd7f6ab9caa68d77f7adb93b46ddbc75c18 /qemu-sockets.c
parent11bb09f1be8e5157b21065e14efda7fd0c7221e7 (diff)
Use qemu_isfoobar and qemu_towombat versions, based on patch by Christoph Egger
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5774 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'qemu-sockets.c')
-rw-r--r--qemu-sockets.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/qemu-sockets.c b/qemu-sockets.c
index 509d2a594e..551ef73fe3 100644
--- a/qemu-sockets.c
+++ b/qemu-sockets.c
@@ -20,6 +20,7 @@
#include <unistd.h>
#include "qemu_socket.h"
+#include "qemu-common.h" /* for qemu_isdigit */
#ifndef AI_ADDRCONFIG
# define AI_ADDRCONFIG 0
@@ -120,7 +121,7 @@ int inet_listen(const char *str, char *ostr, int olen,
return -1;
}
ai.ai_family = PF_INET6;
- } else if (isdigit(str[0])) {
+ } else if (qemu_isdigit(str[0])) {
/* IPv4 addr */
if (2 != sscanf(str,"%64[0-9.]:%32[^,]%n",addr,port,&pos)) {
fprintf(stderr, "%s: ipv4 parse error (%s)\n",
@@ -244,7 +245,7 @@ int inet_connect(const char *str, int socktype)
return -1;
}
ai.ai_family = PF_INET6;
- } else if (isdigit(str[0])) {
+ } else if (qemu_isdigit(str[0])) {
/* IPv4 addr */
if (2 != sscanf(str,"%64[0-9.]:%32[^,]",addr,port)) {
fprintf(stderr, "%s: ipv4 parse error (%s)\n",