diff options
author | 1997-11-26 04:00:50 +0000 | |
---|---|---|
committer | 1997-11-26 04:00:50 +0000 | |
commit | 6cd90de493b49eff795fac736242c7fcd2362c99 (patch) | |
tree | a0b7f81919b2ae827554382517ac7b016d7abf0f /lib/libform/fty_alpha.c | |
parent | libmenu from ncurses 4.1. Post 4.1 patches to be applied in a separate commit. (diff) | |
download | wireguard-openbsd-6cd90de493b49eff795fac736242c7fcd2362c99.tar.xz wireguard-openbsd-6cd90de493b49eff795fac736242c7fcd2362c99.zip |
libform from ncurses 4.1. Post 4.1 patches to be applied in a separate commit.
Diffstat (limited to 'lib/libform/fty_alpha.c')
-rw-r--r-- | lib/libform/fty_alpha.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/libform/fty_alpha.c b/lib/libform/fty_alpha.c index 9471f122357..f36a03c8988 100644 --- a/lib/libform/fty_alpha.c +++ b/lib/libform/fty_alpha.c @@ -5,9 +5,16 @@ * If you develop a field type that might be of general use, please send * it back to the ncurses maintainers for inclusion in the next version. */ +/*************************************************************************** +* * +* Author : Juergen Pfeifer, Juergen.Pfeifer@T-Online.de * +* * +***************************************************************************/ #include "form.priv.h" +MODULE_ID("Id: fty_alpha.c,v 1.6 1997/02/15 17:31:08 tom Exp $") + typedef struct { int width; } alphaARG; @@ -40,7 +47,7 @@ static void *Make_Alpha_Type(va_list * ap) +--------------------------------------------------------------------------*/ static void *Copy_Alpha_Type(const void * argp) { - alphaARG *ap = (alphaARG *)argp; + const alphaARG *ap = (const alphaARG *)argp; alphaARG *new = (alphaARG *)malloc(sizeof(alphaARG)); if (new) @@ -77,7 +84,7 @@ static void Free_Alpha_Type(void * argp) +--------------------------------------------------------------------------*/ static bool Check_Alpha_Field(FIELD * field, const void * argp) { - int width = ((alphaARG *)argp)->width; + int width = ((const alphaARG *)argp)->width; unsigned char *bp = (unsigned char *)field_buffer(field,0); int l = -1; unsigned char *s; @@ -107,7 +114,7 @@ static bool Check_Alpha_Field(FIELD * field, const void * argp) | Return Values : TRUE - character is valid | FALSE - character is invalid +--------------------------------------------------------------------------*/ -static bool Check_Alpha_Character(int c, const void * argp) +static bool Check_Alpha_Character(int c, const void * argp GCC_UNUSED) { return (isalpha(c) ? TRUE : FALSE); } |