aboutsummaryrefslogtreecommitdiff
path: root/desiredata/src
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-05-16 23:34:51 +0000
committerN.N. <matju@users.sourceforge.net>2009-05-16 23:34:51 +0000
commitd1b8488040a599e4b59061c2a9e807eee2c771cc (patch)
treee25a997a262693513b1f2d695dc92e75acfa53b9 /desiredata/src
parent63da9a1fed0c6cd53a43b1ef36a69436bf003eb4 (diff)
fix warnings
svn path=/trunk/; revision=11400
Diffstat (limited to 'desiredata/src')
-rw-r--r--desiredata/src/u_pdsend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/desiredata/src/u_pdsend.c b/desiredata/src/u_pdsend.c
index f0b50aaa..82eb2c59 100644
--- a/desiredata/src/u_pdsend.c
+++ b/desiredata/src/u_pdsend.c
@@ -22,7 +22,7 @@ from its standard input to Pd via the netsend/netreceive ("FUDI") protocol. */
#define SOCKET_ERROR -1
#endif
-void sockerror(char *s);
+void sockerror(const char *s);
void x_closesocket(int fd);
#define BUFSIZE 4096
@@ -30,7 +30,7 @@ int main(int argc, char **argv) {
int sockfd, portno, protocol;
struct sockaddr_in server;
struct hostent *hp;
- char *hostname;
+ const char *hostname;
#ifdef MSW
short version = MAKEWORD(2, 0);
WSADATA nobby;
@@ -93,7 +93,7 @@ usage:
return 1;
}
-void sockerror(char *s) {
+void sockerror(const char *s) {
#ifdef MSW
int err = WSAGetLastError();
if (err == 10054) return;