Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mbone/mdp Fix const issues



details:   https://anonhg.NetBSD.org/pkgsrc/rev/88835f5640dc
branches:  trunk
changeset: 431591:88835f5640dc
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu May 14 19:26:01 2020 +0000

description:
Fix const issues

diffstat:

 mbone/mdp/distinfo                        |   4 +++-
 mbone/mdp/patches/patch-common_mdpApp.cpp |  15 +++++++++++++++
 mbone/mdp/patches/patch-common_mdpApp.h   |  15 +++++++++++++++
 3 files changed, 33 insertions(+), 1 deletions(-)

diffs (53 lines):

diff -r 48d71f2deffb -r 88835f5640dc mbone/mdp/distinfo
--- a/mbone/mdp/distinfo        Thu May 14 19:25:40 2020 +0000
+++ b/mbone/mdp/distinfo        Thu May 14 19:26:01 2020 +0000
@@ -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 @@
 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 -r 48d71f2deffb -r 88835f5640dc mbone/mdp/patches/patch-common_mdpApp.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mbone/mdp/patches/patch-common_mdpApp.cpp Thu May 14 19:26:01 2020 +0000
@@ -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 -r 48d71f2deffb -r 88835f5640dc mbone/mdp/patches/patch-common_mdpApp.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mbone/mdp/patches/patch-common_mdpApp.h   Thu May 14 19:26:01 2020 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index