X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;ds=sidebyside;f=test%2Ftest_addwstr.c;h=9e51f49df1490172fb174508c81772710f3dc061;hb=2bcad5fdfc4aa83a1479bd1d21dadc32dad8c2a8;hp=e4e90579391a8e18de39203e1a5677e752911d9d;hpb=6641601a9dd7f34deeaa978899b3730b27635afb;p=ncurses.git diff --git a/test/test_addwstr.c b/test/test_addwstr.c index e4e90579..9e51f49d 100644 --- a/test/test_addwstr.c +++ b/test/test_addwstr.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright 2020,2022 Thomas E. Dickey * + * Copyright 2020-2022,2023 Thomas E. Dickey * * Copyright 2009-2016,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,7 +27,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: test_addwstr.c,v 1.20 2022/12/04 00:40:11 tom Exp $ + * $Id: test_addwstr.c,v 1.22 2023/05/27 20:13:10 tom Exp $ * * Demonstrate the waddwstr() and wadd_wch functions. * Thomas Dickey - 2009/9/12 @@ -114,7 +114,7 @@ legend(WINDOW *win, int level, Options state, wchar_t *buffer, int length) } static int -ColOf(wchar_t *buffer, int length, int margin) +ColOf(const wchar_t *const buffer, int length, int margin) { int n; int result; @@ -490,7 +490,7 @@ VERSION_COMMON() /* *INDENT-ON* */ int -main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) +main(int argc, char *argv[]) { int ch;