pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/benchmarks/kttcp/files Fixed build failure on NetBSD 3.0:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d3af8d915f00
branches:  trunk
changeset: 532749:d3af8d915f00
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Aug 30 09:23:31 2007 +0000

description:
Fixed build failure on NetBSD 3.0:

kttcp.c:121: warning: assignment discards qualifiers from pointer target type

diffstat:

 benchmarks/kttcp/files/kttcp.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 92bc3aef3fd6 -r d3af8d915f00 benchmarks/kttcp/files/kttcp.c
--- a/benchmarks/kttcp/files/kttcp.c    Thu Aug 30 09:15:52 2007 +0000
+++ b/benchmarks/kttcp/files/kttcp.c    Thu Aug 30 09:23:31 2007 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kttcp.c,v 1.5 2002/07/11 23:32:35 simonb Exp $ */
+/*     $NetBSD: kttcp.c,v 1.6 2007/08/30 09:23:31 rillig Exp $ */
 
 /*
  * Copyright (c) 2002 Wasabi Systems, Inc.
@@ -105,7 +105,7 @@
        int bufsize;
        int ai_flag;
        char *host;
-       char *portstr;
+       const char *portstr;
        struct kttcp_io_args kio;
        struct addrinfo hints, *addr, *res;
        struct sockaddr_storage ss;



Home | Main Index | Thread Index | Old Index