Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:15.2:Rings:1-MinimalX
xscreensaver
xscreensaver-disable-upgrade-nagging-message.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xscreensaver-disable-upgrade-nagging-message.patch of Package xscreensaver
Index: xscreensaver-5.36/driver/prefs.c =================================================================== --- xscreensaver-5.36.orig/driver/prefs.c +++ xscreensaver-5.36/driver/prefs.c @@ -1735,36 +1735,5 @@ decrepit_p (void) upgrading it again -- which would be the worst possible outcome for everyone involved, most especially the users. */ - - time_t now = time ((time_t *) 0); /* */ - struct tm *tm = localtime (&now); /* d */ - const char *s = screensaver_id; /* o */ - char mon[4], year[5]; /* n */ - int m, y, months; /* ' */ - s = strchr (s, ' '); if (!s) abort(); s++; /* t */ - s = strchr (s, '('); if (!s) abort(); s++; /* */ - s = strchr (s, '-'); if (!s) abort(); s++; /* d */ - strncpy (mon, s, 3); /* o */ - mon[3] = 0; /* */ - s = strchr (s, '-'); if (!s) abort(); s++; /* i */ - strncpy (year, s, 4); /* t */ - year[4] = 0; /* , */ - y = atoi (year); /* */ - if (!strcmp(mon, "Jan")) m = 0; /* s */ - else if (!strcmp(mon, "Feb")) m = 1; /* t */ - else if (!strcmp(mon, "Mar")) m = 2; /* o */ - else if (!strcmp(mon, "Apr")) m = 3; /* p */ - else if (!strcmp(mon, "May")) m = 4; /* , */ - else if (!strcmp(mon, "Jun")) m = 5; /* */ - else if (!strcmp(mon, "Jul")) m = 6; /* s */ - else if (!strcmp(mon, "Aug")) m = 7; /* t */ - else if (!strcmp(mon, "Sep")) m = 8; /* a */ - else if (!strcmp(mon, "Oct")) m = 9; /* a */ - else if (!strcmp(mon, "Nov")) m = 10; /* a */ - else if (!strcmp(mon, "Dec")) m = 11; /* h */ - else abort(); /* h */ - months = ((((tm->tm_year + 1900) * 12) + tm->tm_mon) - /* h */ - (y * 12 + m)); /* p */ - /* . */ - return (months >= 17); /* */ +return False; }
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