$OpenBSD: patch-sunclock_c,v 1.3 2009/03/23 17:20:33 naddy Exp $
--- sunclock.c.orig	Thu Jun 22 00:21:40 2006
+++ sunclock.c	Mon Mar 23 11:01:19 2009
@@ -127,7 +127,6 @@
  *  external routines
  */
 
-extern long     time();
 #ifdef NEW_CTIME
 extern char *   timezone();
 #endif
@@ -3142,9 +3141,9 @@ struct Sundata * Context;
 {
    int ilon, ilat, width, dw = 0;
    struct TextLabel * label;
-   if(!Context->wintype) return;
    char *text, *text0, *ptr;
 
+   if(!Context->wintype) return;
    label = Context->label;
    while (label) if (label->text && *label->text) {
       ilon = int_longitude(Context, label->lon);
