Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
orbital
orbit-1.01-strict_aliasing.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File orbit-1.01-strict_aliasing.patch of Package orbital
--- src/log.c +++ src/log.c @@ -67,11 +67,13 @@ va_list ap; int tm; char buf[64]; + time_t * ptr_tmp; tm = time (NULL); + ptr_tmp = &tm; va_start (ap, fmt); - strcpy (buf, ctime((const time_t *)&tm)); + strcpy (buf, ctime(ptr_tmp)); buf[strlen(buf)-1] = 0; fprintf (logfd, "%s: ", buf); vfprintf (logfd, fmt, ap); --- src/save.c +++ src/save.c @@ -175,13 +175,15 @@ /* Construct the selection list */ strcpy (buf, "Select mission to load:\\\\"); + time_t * ptr_tmp; for (s=0; s<nsaves; s++) { sprintf (buf2, "%d) ", s); strcat (buf, buf2); strcat (buf, save[s].fn); strcat (buf, " "); - sprintf (buf2, "%s", ctime((const time_t *)&save[s].time)); + ptr_tmp = &save[s].time; + sprintf (buf2, "%s", ctime(ptr_tmp)); strcat (buf, buf2); strcat (buf, "\\"); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor