patch-sunclock_c 804 B

12345678910111213141516171819202122232425262728293031
  1. $OpenBSD: patch-sunclock_c,v 1.4 2013/12/06 16:19:58 naddy Exp $
  2. --- sunclock.c.orig Thu Jun 22 01:21:40 2006
  3. +++ sunclock.c Thu Dec 5 19:46:00 2013
  4. @@ -113,7 +113,6 @@
  5. #include <stdlib.h>
  6. #include <stdio.h>
  7. #include <sys/types.h>
  8. -#include <sys/timeb.h>
  9. #include <sys/stat.h>
  10. #include <string.h>
  11. #include <X11/Xatom.h>
  12. @@ -127,7 +126,6 @@
  13. * external routines
  14. */
  15. -extern long time();
  16. #ifdef NEW_CTIME
  17. extern char * timezone();
  18. #endif
  19. @@ -3142,9 +3140,9 @@ struct Sundata * Context;
  20. {
  21. int ilon, ilat, width, dw = 0;
  22. struct TextLabel * label;
  23. - if(!Context->wintype) return;
  24. char *text, *text0, *ptr;
  25. + if(!Context->wintype) return;
  26. label = Context->label;
  27. while (label) if (label->text && *label->text) {
  28. ilon = int_longitude(Context, label->lon);