Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 201073 Details for
Bug 277072
=games-sports/toycars-0.3.10 fails to build with glibc-2.10+
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch solving compilation errors with gcc-4.4/glibc-2.10
toycars-0.3.10-gcc4.4.patch (text/plain), 3.24 KB, created by
Dominik Kapusta (RETIRED)
on 2009-08-12 19:56:07 UTC
(
hide
)
Description:
Patch solving compilation errors with gcc-4.4/glibc-2.10
Filename:
MIME Type:
Creator:
Dominik Kapusta (RETIRED)
Created:
2009-08-12 19:56:07 UTC
Size:
3.24 KB
patch
obsolete
>diff --git a/toycars_track_editor/src/TrackView.cxx b/toycars_track_editor/src/TrackView.cxx >index d52daba..e1a66df 100644 >--- a/toycars_track_editor/src/TrackView.cxx >+++ b/toycars_track_editor/src/TrackView.cxx >@@ -89,7 +89,7 @@ TiXmlDocument *findXMLFile(const char *filename, SearchDirectories *dirs, char * > //{jpg,png,bmp,pnm,pbm,pgm,ppm} > Fl_Image* loadImage(const char *filename) > { >- char *suffix = strrchr(filename, '.'); >+ const char *suffix = strrchr(filename, '.'); > if (suffix == NULL) > return NULL; > if (strcmp(suffix,".jpg") == 0) >@@ -969,13 +969,13 @@ void TrackView::installMap(const char *name) > uninstallMap(name); > > // chop off any .xml suffix >- temp = strrchr(name, '.'); >+ temp = const_cast<char*>( strrchr(name, '.') ); > if (temp) { > if (strcmp(temp, ".xml") == 0) > temp[0] = '\0'; > } > // remove path >- temp = strrchr(name, '/'); >+ temp = const_cast<char*>( strrchr(name, '/') ); > if (temp) { > strncpy(trackname, temp+1, 255); > } >@@ -1044,13 +1044,13 @@ void TrackView::uninstallMap(const char *name) > char *temp; > > // chop off any .xml suffix >- temp = strrchr(name, '.'); >+ temp = const_cast<char*>( strrchr(name, '.') ); > if (temp) { > if (strcmp(temp, ".xml") == 0) > temp[0] = '\0'; > } > // remove path >- temp = strrchr(name, '/'); >+ temp = const_cast<char*>( strrchr(name, '/') ); > if (temp) { > strncpy(trackname, temp+1, 255); > } >diff --git a/toycars_vehicle_editor/src/LoadSpriteFromImage.cpp b/toycars_vehicle_editor/src/LoadSpriteFromImage.cpp >index 4b6ff50..7aa6c40 100644 >--- a/toycars_vehicle_editor/src/LoadSpriteFromImage.cpp >+++ b/toycars_vehicle_editor/src/LoadSpriteFromImage.cpp >@@ -23,7 +23,7 @@ > //{jpg,png,bmp,pnm,pbm,pgm,ppm} > Fl_Image* loadImage(const char *filename) > { >- char *suffix = strrchr(filename, '.'); >+ const char *suffix = strrchr(filename, '.'); > if (suffix == NULL) > return NULL; > if (strcmp(suffix,".jpg") == 0) >diff --git a/toycars_vehicle_editor/src/VehicleObject.cpp b/toycars_vehicle_editor/src/VehicleObject.cpp >index 3f61114..0bd2978 100644 >--- a/toycars_vehicle_editor/src/VehicleObject.cpp >+++ b/toycars_vehicle_editor/src/VehicleObject.cpp >@@ -533,13 +533,13 @@ void VehicleObject::installVehicle(const char *name) > uninstallVehicle(name); > > // chop off any .xml suffix >- temp = strrchr(name, '.'); >+ temp = const_cast<char*>( strrchr(name, '.') ); > if (temp) { > if (strcmp(temp, ".xml") == 0) > temp[0] = '\0'; > } > // remove path >- temp = strrchr(name, '/'); >+ temp = const_cast<char*>( strrchr(name, '/') ); > if (temp) { > strncpy(carname, temp+1, 255); > } >@@ -610,13 +610,13 @@ void VehicleObject::uninstallVehicle(const char *name) > char *temp; > > // chop off any .xml suffix >- temp = strrchr(name, '.'); >+ temp = const_cast<char*>( strrchr(name, '.') ); > if (temp) { > if (strcmp(temp, ".xml") == 0) > temp[0] = '\0'; > } > // remove path >- temp = strrchr(name, '/'); >+ temp = const_cast<char*>( strrchr(name, '/') ); > if (temp) { > strncpy(carname, temp+1, 255); > } >@@ -675,4 +675,4 @@ void VehicleObject::uninstallVehicle(const char *name) > system(str); > */ > #endif >-} >\ No newline at end of file >+}
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 277072
:
197225
| 201073