File xscreensaver-disable-upgrade-nagging-message.patch of Package xscreensaver.openSUSE_13.1_Update
Index: xscreensaver-5.22/driver/prefs.c
===================================================================
--- xscreensaver-5.22.orig/driver/prefs.c
+++ xscreensaver-5.22/driver/prefs.c
@@ -1657,36 +1657,5 @@ stop_the_insanity (saver_preferences *p)
Bool
senescent_p (void)
{
- time_t now = time ((time_t *) 0);
- struct tm *tm = localtime (&now);
- char *s, mon[4], year[5];
- int m, y, months;
- s = strchr (screensaver_id, '-');
- s++;
- strncpy (mon, s, 3);
- s = strchr (s, '-');
- s++;
- strncpy (year, s, 4);
- mon[3] = 0;
- year[4] = 0;
- if (!strcmp(mon, "Jan")) m = 0;
- else if (!strcmp(mon, "Feb")) m = 1;
- else if (!strcmp(mon, "Mar")) m = 2;
- else if (!strcmp(mon, "Apr")) m = 3;
- else if (!strcmp(mon, "May")) m = 4;
- else if (!strcmp(mon, "Jun")) m = 5;
- else if (!strcmp(mon, "Jul")) m = 6;
- else if (!strcmp(mon, "Aug")) m = 7;
- else if (!strcmp(mon, "Sep")) m = 8;
- else if (!strcmp(mon, "Oct")) m = 9;
- else if (!strcmp(mon, "Nov")) m = 10;
- else if (!strcmp(mon, "Dec")) m = 11;
- else abort();
-
- y = (year[0]-'0')*1000 + (year[1]-'0')*100 + (year[2]-'0')*10 +(year[3]-'0');
-
- months = ((((tm->tm_year + 1900) * 12) + tm->tm_mon) -
- (y * 12 + m));
-
- return (months > 12);
+ return False;
}