]> git.pld-linux.org Git - packages/nss.git/commitdiff
- use const args in PK11_FindSlotBy* to avoid invalid casts. auto/ac/nss-3_9_2-2
authorPaweł Sikora <pluto@pld-linux.org>
Tue, 30 Nov 2004 23:08:30 +0000 (23:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- release 2.

Changed files:
    nss-pk11_const.patch -> 1.1
    nss.spec -> 1.51

nss-pk11_const.patch [new file with mode: 0644]
nss.spec

diff --git a/nss-pk11_const.patch b/nss-pk11_const.patch
new file mode 100644 (file)
index 0000000..20a8068
--- /dev/null
@@ -0,0 +1,35 @@
+diff -uNr nss-3.9.2/mozilla/security/nss/lib/pk11wrap.orig/pk11func.h nss-3.9.2/mozilla/security/nss/lib/pk11wrap/pk11func.h
+--- nss-3.9.2/mozilla/security/nss/lib/pk11wrap.orig/pk11func.h        2004-06-22 00:53:18.000000000 +0200
++++ nss-3.9.2/mozilla/security/nss/lib/pk11wrap/pk11func.h     2004-11-30 23:53:18.647970312 +0100
+@@ -137,8 +137,8 @@
+ /******************************************************************
+  *           Slot info functions
+  ******************************************************************/
+-PK11SlotInfo *PK11_FindSlotByName(char *name);
+-PK11SlotInfo *PK11_FindSlotBySerial(char *serial);
++PK11SlotInfo *PK11_FindSlotByName(const char *name);
++PK11SlotInfo *PK11_FindSlotBySerial(const char *serial);
+ /******************************************************************
+  * PK11_FindSlotsByNames searches for a PK11SlotInfo using one or
+  * more criteria : dllName, slotName and tokenName . In addition, if
+diff -uNr nss-3.9.2/mozilla/security/nss/lib/pk11wrap.orig/pk11slot.c nss-3.9.2/mozilla/security/nss/lib/pk11wrap/pk11slot.c
+--- nss-3.9.2/mozilla/security/nss/lib/pk11wrap.orig/pk11slot.c        2004-06-22 00:53:19.000000000 +0200
++++ nss-3.9.2/mozilla/security/nss/lib/pk11wrap/pk11slot.c     2004-11-30 23:53:37.963033976 +0100
+@@ -638,7 +638,7 @@
+ }
+ PK11SlotInfo *
+-PK11_FindSlotByName(char *name)
++PK11_FindSlotByName(const char *name)
+ {
+    SECMODModuleList *mlp;
+    SECMODModuleList *modules = SECMOD_GetDefaultModuleList();
+@@ -675,7 +675,7 @@
+ PK11SlotInfo *
+-PK11_FindSlotBySerial(char *serial)
++PK11_FindSlotBySerial(const char *serial)
+ {
+    SECMODModuleList *mlp;
+    SECMODModuleList *modules = SECMOD_GetDefaultModuleList();
index 55d6e00d6722d3650f44b65c70b8ad9bd9935083..14544e7f7c56e6b1ba50c1f0f8f210db128f6280 100644 (file)
--- a/nss.spec
+++ b/nss.spec
@@ -3,7 +3,7 @@ Summary(pl):    NSS - Network Security Services
 Name:          nss
 Version:       3.9.2
 %define        foover  %(echo %{version} | tr . _)
-Release:       1
+Release:       2
 Epoch:         1
 License:       GPL
 Group:         Libraries
@@ -11,6 +11,7 @@ Source0:      http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_%{foov
 # Source0-md5: c10b5100510dab1e3c94b76a4d7b1f23
 Patch0:                %{name}-Makefile.patch
 Patch1:                %{name}-system-zlib.patch
+Patch2:                %{name}-pk11_const.patch
 BuildRequires: nspr-devel >= 4.4.1
 BuildRequires: zip >= 2.1
 BuildConflicts:        mozilla < 0.9.6-3
@@ -71,6 +72,7 @@ Statyczne wersje bibliotek z NSS.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 cd mozilla/security/nss
This page took 0.557626 seconds and 4 git commands to generate.