Gentoo Archives: gentoo-commits

From: "Mounir Lamouri (volkmar)" <volkmar@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-arch/upm/files: upm-0.85-static.patch
Date: Fri, 31 Jul 2009 09:37:05
Message-Id: E1MWoXv-0006gM-Hj@stork.gentoo.org
1 volkmar 09/07/31 09:37:03
2
3 Added: upm-0.85-static.patch
4 Log:
5 Fixing compilation issue.
6 Bug 264067.
7 Thanks to Robert Lewis.
8 (Portage version: 13856-svn/cvs/Linux i686)
9
10 Revision Changes Path
11 1.1 app-arch/upm/files/upm-0.85-static.patch
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/upm/files/upm-0.85-static.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/upm/files/upm-0.85-static.patch?rev=1.1&content-type=text/plain
15
16 Index: upm-0.85-static.patch
17 ===================================================================
18 Fix compilation issue.
19 Look at https://bugs.gentoo.org/264067
20 Thanks to Robert Lewis
21 --- a/upm-0.85/upm.c 2009-04-27 22:48:39.265036979 -0400
22 +++ b/upm-0.85/upm.c 2009-04-27 22:49:01.724787260 -0400
23 @@ -2235,21 +2235,21 @@
24 ************************************************************/
25
26 /* Fast way to read octals */
27 -unsigned inline moct(char *s) {
28 +static unsigned inline moct(char *s) {
29 unsigned int x=0;
30 while (isdigit(*s)) x=x*8+*s++-'0';
31 return x;
32 }
33
34 /* Fast way to read ints */
35 -unsigned inline mint(char *s) {
36 +static unsigned inline mint(char *s) {
37 unsigned int x=0;
38 while (isdigit(*s)) x=x*10+*s++-'0';
39 return x;
40 }
41
42 /* Fast way to read long ints */
43 -unsigned long long inline mlong(char *s) {
44 +static unsigned long long inline mlong(char *s) {
45 unsigned long long x=0;
46 while (isdigit(*s)) x=x*10+*s++-'0';
47 return x;