X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fgdc.c;h=a74cd0df76b8d0224fb4714a7e95c012014b2e6e;hp=4c662ecf73ef636c42027539a9f928968c95315b;hb=73ab536b636227eed291dad213ca88c93d422fb8;hpb=938680fa3bc29d2a086031a2f648dfd6cadcb51e diff --git a/test/gdc.c b/test/gdc.c index 4c662ecf..a74cd0df 100644 --- a/test/gdc.c +++ b/test/gdc.c @@ -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 * @@ -33,7 +33,7 @@ * 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 @@ -60,7 +60,7 @@ static int sigtermed = 0; static bool redirected = FALSE; static bool hascolor = FALSE; -static RETSIGTYPE +static void sighndl(int signo) { signal(signo, sighndl); @@ -293,7 +293,7 @@ main(int argc, char *argv[]) } /* 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);