1 |
jmbsvicetto 09/05/04 09:02:47 |
2 |
|
3 |
Added: iniparser-3.0b-fix-set-functions.patch |
4 |
Log: |
5 |
Applied patch to sync headers and source of iniparser. Thanks to John Keeping <john.keeping@×××××××.net> - fixes bug 267753. |
6 |
Applied with dev-zero's agreement. |
7 |
(Portage version: 2.2_rc31/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-libs/iniparser/files/iniparser-3.0b-fix-set-functions.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/iniparser/files/iniparser-3.0b-fix-set-functions.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/iniparser/files/iniparser-3.0b-fix-set-functions.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: iniparser-3.0b-fix-set-functions.patch |
16 |
=================================================================== |
17 |
diff -aur iniparser3.0b/src/iniparser.h iniparser3.0b.patched/src/iniparser.h |
18 |
--- iniparser3.0b/src/iniparser.h 2007-11-23 21:38:19.000000000 +0000 |
19 |
+++ iniparser3.0b.patched/src/iniparser.h 2009-04-28 11:08:28.644706261 +0100 |
20 |
@@ -39,7 +39,8 @@ |
21 |
---------------------------------------------------------------------------*/ |
22 |
/** For backwards compatibility only */ |
23 |
#define iniparser_getstr(d, k) iniparser_getstring(d, k, NULL) |
24 |
-#define iniparser_setstr iniparser_setstring |
25 |
+#define iniparser_setstr iniparser_set |
26 |
+#define iniparser_setstring iniparser_set |
27 |
|
28 |
/*-------------------------------------------------------------------------*/ |
29 |
/** |
30 |
@@ -215,11 +216,11 @@ |
31 |
@return int 0 if Ok, -1 otherwise. |
32 |
|
33 |
If the given entry can be found in the dictionary, it is modified to |
34 |
- contain the provided value. If it cannot be found, -1 is returned. |
35 |
+ contain the provided value. If it cannot be found, it is inserted. |
36 |
It is Ok to set val to NULL. |
37 |
*/ |
38 |
/*--------------------------------------------------------------------------*/ |
39 |
-int iniparser_setstring(dictionary * ini, char * entry, char * val); |
40 |
+int iniparser_set(dictionary * ini, char * entry, char * val); |
41 |
|
42 |
|
43 |
/*-------------------------------------------------------------------------*/ |