Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 196974 Details for
Bug 275905
app-office/ledger-2.6.1 fails to build with sys-libs/glibc-2.10.1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
constify pointers so glibc 2.10 will be happy
ledger-2.6.1-glibc210.patch (text/plain), 1.47 KB, created by
Arttu Valo
on 2009-07-06 22:36:38 UTC
(
hide
)
Description:
constify pointers so glibc 2.10 will be happy
Filename:
MIME Type:
Creator:
Arttu Valo
Created:
2009-07-06 22:36:38 UTC
Size:
1.47 KB
patch
obsolete
>diff -ur ledger-2.6.1.old/gnucash.cc ledger-2.6.1/gnucash.cc >--- ledger-2.6.1.old/gnucash.cc 2009-07-07 09:10:35.461037758 +0300 >+++ ledger-2.6.1/gnucash.cc 2009-07-07 09:29:17.462613252 +0300 >@@ -201,7 +201,7 @@ > { > const char * num = number.c_str(); > >- if (char * p = std::strchr(num, '/')) { >+ if (const char * p = std::strchr(num, '/')) { > std::string numer_str(num, p - num); > std::string denom_str(p + 1); > >diff -ur ledger-2.6.1.old/option.cc ledger-2.6.1/option.cc >--- ledger-2.6.1.old/option.cc 2009-07-07 09:10:35.459038062 +0300 >+++ ledger-2.6.1/option.cc 2009-07-07 09:15:26.238434229 +0300 >@@ -893,7 +893,7 @@ > namespace { > void parse_price_setting(const char * optarg) > { >- char * equals = std::strchr(optarg, '='); >+ const char * equals = std::strchr(optarg, '='); > if (! equals) > return; > >diff -ur ledger-2.6.1.old/textual.cc ledger-2.6.1/textual.cc >--- ledger-2.6.1.old/textual.cc 2009-07-07 09:10:35.458037934 +0300 >+++ ledger-2.6.1/textual.cc 2009-07-07 09:26:23.627028972 +0300 >@@ -298,8 +298,8 @@ > DEBUG_PRINT("ledger.textual.parse", "line " << linenum << ": " << > "Parsed a note '" << xact->note << "'"); > >- if (char * b = std::strchr(xact->note.c_str(), '[')) >- if (char * e = std::strchr(xact->note.c_str(), ']')) { >+ if (const char * b = std::strchr(xact->note.c_str(), '[')) >+ if (const char * e = std::strchr(xact->note.c_str(), ']')) { > char buf[256]; > std::strncpy(buf, b + 1, e - b - 1); > buf[e - b - 1] = '\0';
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 275905
: 196974