pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/games/xevil
Module Name: pkgsrc
Committed By: joerg
Date: Thu Mar 26 02:33:57 UTC 2020
Modified Files:
pkgsrc/games/xevil: distinfo
pkgsrc/games/xevil/patches: patch-at patch-au
Log Message:
Match const correctness of C++ string.h
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/games/xevil/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/games/xevil/patches/patch-at
cvs rdiff -u -r1.1 -r1.2 pkgsrc/games/xevil/patches/patch-au
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/games/xevil/distinfo
diff -u pkgsrc/games/xevil/distinfo:1.11 pkgsrc/games/xevil/distinfo:1.12
--- pkgsrc/games/xevil/distinfo:1.11 Sat May 7 09:57:53 2016
+++ pkgsrc/games/xevil/distinfo Thu Mar 26 02:33:57 2020
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2016/05/07 09:57:53 joerg Exp $
+$NetBSD: distinfo,v 1.12 2020/03/26 02:33:57 joerg Exp $
SHA1 (xevilsrc2.02r2.zip) = e9a262daffc7ee5c06196dc94cf35c199be86bbc
RMD160 (xevilsrc2.02r2.zip) = dca82298ac2dfe66e4e92a02731bb6851563b67e
@@ -22,8 +22,8 @@ SHA1 (patch-ap) = 7fb4d991f629ee5f36718a
SHA1 (patch-aq) = 2a781bd3118bda38244f7b7a0bb1a202a90c3983
SHA1 (patch-ar) = 8be1ce3f1ed2bd55dfc77042fa5f62fc6b036903
SHA1 (patch-as) = 4c4e4ef0e626b8f04a120c996ec155cacf0c0ddf
-SHA1 (patch-at) = 6344907d83f7e6ee426e60970de88a0dc1686f48
-SHA1 (patch-au) = f1092ff4228d4bb6f13e6aeb0ea70a5b4b9635b6
+SHA1 (patch-at) = 5a6bc7e322d87c79595d8bcfb10a86db0aa79044
+SHA1 (patch-au) = 31ca4e555c886388542a3440c2ed6df315df2f29
SHA1 (patch-cmn_game.h) = 47db702d729158290118cf75a0c437362f9af1c3
SHA1 (patch-cmn_streams.cpp) = bb32e15807cc5ff2289df2e1dc1c1661c8949ad4
SHA1 (patch-cmn_world.cpp) = 7bae7dfe426bf7dcf06906d62cd60c50efe98d4f
Index: pkgsrc/games/xevil/patches/patch-at
diff -u pkgsrc/games/xevil/patches/patch-at:1.3 pkgsrc/games/xevil/patches/patch-at:1.4
--- pkgsrc/games/xevil/patches/patch-at:1.3 Fri Oct 26 20:21:33 2012
+++ pkgsrc/games/xevil/patches/patch-at Thu Mar 26 02:33:57 2020
@@ -1,4 +1,4 @@
-$NetBSD: patch-at,v 1.3 2012/10/26 20:21:33 joerg Exp $
+$NetBSD: patch-at,v 1.4 2020/03/26 02:33:57 joerg Exp $
--- x11/serverping.cpp.orig 2003-03-22 21:55:12.000000000 +0000
+++ x11/serverping.cpp
@@ -14,6 +14,17 @@ $NetBSD: patch-at,v 1.3 2012/10/26 20:21
#include "utils.h"
#include "streams.h"
#include "xetp_basic.h"
+@@ -112,8 +113,8 @@ ServerPing::ServerPing(int argc,char** a
+ }
+
+
+- char* sString = argv[argc - 1];
+- char* port = Utils::strchr(sString,':');
++ const char* sString = argv[argc - 1];
++ const char* port = Utils::strchr(sString,':');
+ // server:port
+ if (port) {
+ serverName = new char[port - sString + 1];
@@ -355,7 +356,7 @@ void ServerPing::print_results_and_exit(
Index: pkgsrc/games/xevil/patches/patch-au
diff -u pkgsrc/games/xevil/patches/patch-au:1.1 pkgsrc/games/xevil/patches/patch-au:1.2
--- pkgsrc/games/xevil/patches/patch-au:1.1 Sun Aug 17 23:50:06 2008
+++ pkgsrc/games/xevil/patches/patch-au Thu Mar 26 02:33:57 2020
@@ -1,7 +1,24 @@
-$NetBSD: patch-au,v 1.1 2008/08/17 23:50:06 dholland Exp $
+$NetBSD: patch-au,v 1.2 2020/03/26 02:33:57 joerg Exp $
---- cmn/utils.h~ 2003-03-19 10:03:50.000000000 -0500
-+++ cmn/utils.h 2008-08-17 19:21:44.000000000 -0400
+--- cmn/utils.h.orig 2003-03-19 10:03:50.000000000 +0000
++++ cmn/utils.h
+@@ -237,13 +237,13 @@ class Utils {
+ /* EFFECTS: Wrapper for C library strcmp(). Return 0 if strings are the
+ same. */
+
+- static char* strchr(const char* cs,int c)
++ static const char* strchr(const char* cs,int c)
+ {return ::strchr(cs,c);}
+
+- static char* strrchr(const char* cs,int c)
++ static const char* strrchr(const char* cs,int c)
+ {return ::strrchr(cs,c);}
+
+- static char* strstr(const char* cs,const char* ct)
++ static const char* strstr(const char* cs,const char* ct)
+ {return ::strstr(cs,ct);}
+
+ static void strcpy(char* s,const char* ct)
@@ -376,8 +376,10 @@ public:
int get_write_length() const {return get_write_length(len);}
/* EFFECTS: write_length of this list */
Home |
Main Index |
Thread Index |
Old Index