rpms/sblim-wbemcli/devel sblim-wbemcli-1.6.0-consts.patch, NONE, 1.1 sblim-wbemcli.spec, 1.11, 1.12
Caolan McNamara
caolanm at fedoraproject.org
Sat Feb 28 13:53:12 UTC 2009
Author: caolanm
Update of /cvs/pkgs/rpms/sblim-wbemcli/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24692
Modified Files:
sblim-wbemcli.spec
Added Files:
sblim-wbemcli-1.6.0-consts.patch
Log Message:
constify rets of strchr(const char *)
sblim-wbemcli-1.6.0-consts.patch:
--- NEW FILE sblim-wbemcli-1.6.0-consts.patch ---
diff -ru sblim-wbemcli-1.6.0.orig/CimXml.cpp sblim-wbemcli-1.6.0/CimXml.cpp
--- sblim-wbemcli-1.6.0.orig/CimXml.cpp 2009-02-28 13:36:46.000000000 +0000
+++ sblim-wbemcli-1.6.0/CimXml.cpp 2009-02-28 13:45:39.000000000 +0000
@@ -1933,7 +1933,7 @@
if (av) {
int i,s;
string urlstr;
- char *p,*q;
+ const char *p,*q;
// create full wbemcli URL
p=strchr(av->val.c_str(),'/');
@@ -2155,7 +2155,7 @@
{
int i, k;
string urlstr;
- char *p, *q;
+ const char *p, *q;
xb += "<VALUE.REFERENCE>";
@@ -3177,7 +3177,7 @@
case 0:
sb = sb + "<KEYBINDING NAME=\"" + p.name + "\">";
if (p.pType==TypePropertyRef) {
- char *u, *nsp;
+ const char *u, *nsp;
const char *cnp;
StringArray lns;
string cn;
Index: sblim-wbemcli.spec
===================================================================
RCS file: /cvs/pkgs/rpms/sblim-wbemcli/devel/sblim-wbemcli.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- sblim-wbemcli.spec 25 Feb 2009 22:46:43 -0000 1.11
+++ sblim-wbemcli.spec 28 Feb 2009 13:52:41 -0000 1.12
@@ -1,6 +1,6 @@
Name: sblim-wbemcli
Version: 1.6.0
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: SBLIM WBEM Command Line Interface
Group: Applications/System
@@ -8,6 +8,7 @@
URL: http://sblim.wiki.sourceforge.net/
Source0: http://downloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2
Patch0: sblim-wbemcli-1.5.1-gcc43.patch
+Patch1: sblim-wbemcli-1.6.0-consts.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: curl-devel >= 7.9.3
@@ -23,6 +24,7 @@
%prep
%setup -q
%patch0 -p1 -b .gcc43
+%patch1 -p1 -b .consts
%build
%configure CACERT=/etc/Pegasus/client.pem
@@ -44,6 +46,9 @@
%{_datadir}/%{name}
%changelog
+* Sat Feb 28 2009 Caolán McNamara - 1.6.0-4
+- constify rets of strchr(const char *);
+
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
More information about the scm-commits
mailing list