]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/gdc.c
ncurses 5.9 - patch 20131012
[ncurses.git] / test / gdc.c
index 4c662ecf73ef636c42027539a9f928968c95315b..a74cd0df76b8d0224fb4714a7e95c012014b2e6e 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
 /****************************************************************************
- * Copyright (c) 1998-2010,2012 Free Software Foundation, Inc.              *
+ * Copyright (c) 1998-2012,2013 Free Software Foundation, Inc.              *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
@@ -33,7 +33,7 @@
  * modified 10-18-89 for curses (jrl)
  * 10-18-89 added signal handling
  *
  * modified 10-18-89 for curses (jrl)
  * 10-18-89 added signal handling
  *
- * $Id: gdc.c,v 1.36 2012/12/29 22:51:57 tom Exp $
+ * $Id: gdc.c,v 1.38 2013/09/28 21:58:32 tom Exp $
  */
 
 #include <test.priv.h>
  */
 
 #include <test.priv.h>
@@ -60,7 +60,7 @@ static int sigtermed = 0;
 static bool redirected = FALSE;
 static bool hascolor = FALSE;
 
 static bool redirected = FALSE;
 static bool hascolor = FALSE;
 
-static RETSIGTYPE
+static void
 sighndl(int signo)
 {
     signal(signo, sighndl);
 sighndl(int signo)
 {
     signal(signo, sighndl);
@@ -293,7 +293,7 @@ main(int argc, char *argv[])
        }
 
        /* this depends on the detailed format of ctime(3) */
        }
 
        /* this depends on the detailed format of ctime(3) */
-       (void) strncpy(buf, ctime(&now), 30);
+       (void) strncpy(buf, ctime(&now), (size_t) 30);
        (void) strcpy(buf + 10, buf + 19);
        MvAddStr(16, 30, buf);
 
        (void) strcpy(buf + 10, buf + 19);
        MvAddStr(16, 30, buf);