summaryrefslogtreecommitdiff
path: root/mbone
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2020-05-14 19:26:01 +0000
committerjoerg <joerg@pkgsrc.org>2020-05-14 19:26:01 +0000
commita8513f5801449c42e7b0edbd3aa780038972e8c1 (patch)
tree66d384699fcea61bdfe091987fe9f9872a3e04db /mbone
parent9efdce1905b251b4106d2f6d219a358f6aa21e58 (diff)
downloadpkgsrc-a8513f5801449c42e7b0edbd3aa780038972e8c1.tar.gz
Fix const issues
Diffstat (limited to 'mbone')
-rw-r--r--mbone/mdp/distinfo4
-rw-r--r--mbone/mdp/patches/patch-common_mdpApp.cpp15
-rw-r--r--mbone/mdp/patches/patch-common_mdpApp.h15
3 files changed, 33 insertions, 1 deletions
diff --git a/mbone/mdp/distinfo b/mbone/mdp/distinfo
index 3a9ea1edb8f..191d854a3ae 100644
--- a/mbone/mdp/distinfo
+++ b/mbone/mdp/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2015/11/02 23:54:08 agc Exp $
+$NetBSD: distinfo,v 1.7 2020/05/14 19:26:01 joerg Exp $
SHA1 (src-mdp-1.9a5.tgz) = 62d688cc7f570d4492d6e0839026b6a72a5c7163
RMD160 (src-mdp-1.9a5.tgz) = ba9a614466995eff42ea14d2afdb442fff780284
@@ -11,3 +11,5 @@ Size (src-protolib-1.0a3d.tgz) = 59402 bytes
SHA1 (patch-ab) = 6a958d89aa42c636e67a9989d8a94eba1d3816e6
SHA1 (patch-ac) = 72ccea437882074279c887635deb1ad3acbcb3ed
SHA1 (patch-ad) = b6ec185f71ee4bac3986739969f12395de591328
+SHA1 (patch-common_mdpApp.cpp) = 36d89f74b4c6d17a38ffb864f382d1dfb63301b0
+SHA1 (patch-common_mdpApp.h) = a308271cf84fa58ed437d72c302d712fd17ffd2b
diff --git a/mbone/mdp/patches/patch-common_mdpApp.cpp b/mbone/mdp/patches/patch-common_mdpApp.cpp
new file mode 100644
index 00000000000..2327eba9d2e
--- /dev/null
+++ b/mbone/mdp/patches/patch-common_mdpApp.cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-common_mdpApp.cpp,v 1.1 2020/05/14 19:26:01 joerg Exp $
+
+optarg is modified in place, can't be const.
+
+--- common/mdpApp.cpp.orig 2020-05-13 20:39:40.263973752 +0000
++++ common/mdpApp.cpp
+@@ -636,7 +636,7 @@ const char* MDPAPP_CMD_LINE_FLAGS =
+ "aA:b:BcC:d:D:e:E:fF:g:G:i:I:Jk:K:l:L:mMn:No:p:P:Q:r:R:s:S:t:TuUWwX:y:z:Z:";
+
+ // Process MdpApp command line options and arguments
+-bool MdpApp::ProcessCommand(char opt, const char* optarg)
++bool MdpApp::ProcessCommand(char opt, char* optarg)
+ {
+ char* ptr;
+ switch(opt)
diff --git a/mbone/mdp/patches/patch-common_mdpApp.h b/mbone/mdp/patches/patch-common_mdpApp.h
new file mode 100644
index 00000000000..669ccbddcf9
--- /dev/null
+++ b/mbone/mdp/patches/patch-common_mdpApp.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-common_mdpApp.h,v 1.1 2020/05/14 19:26:01 joerg Exp $
+
+optarg is modified in place, can't be const.
+
+--- common/mdpApp.h.orig 2020-05-13 20:40:17.396210025 +0000
++++ common/mdpApp.h
+@@ -55,7 +55,7 @@ class MdpApp
+ bool Init(MdpTimerInstallCallback* timerInstaller,
+ MdpSocketInstallCallback* sockerInstaller);
+ bool Start();
+- bool ProcessCommand(char opt, const char* optarg);
++ bool ProcessCommand(char opt, char* optarg);
+ const char* SessionName() {return session_name;}
+ virtual void SetPostProcessor(const char* theCmd);
+ void SetProcessorOpt(int i, char *opt);