X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=form%2Ffty_generic.c;h=429ceac44a054489cb33585153d66abdb47bf6e3;hp=6ab5ed7771937d6c70a8ec28d8c2462ed65acf50;hb=e3509ece56de67169d250c040b36309f72e13292;hpb=f5da57ad7eb397b1001e2fca9cb0e278a6564716 diff --git a/form/fty_generic.c b/form/fty_generic.c index 6ab5ed77..429ceac4 100644 --- a/form/fty_generic.c +++ b/form/fty_generic.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2008,2009 Free Software Foundation, Inc. * + * Copyright (c) 2008-2010,2012 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 * @@ -34,7 +34,7 @@ #include "form.priv.h" -MODULE_ID("$Id: fty_generic.c,v 1.4 2009/11/07 20:42:38 tom Exp $") +MODULE_ID("$Id: fty_generic.c,v 1.6 2012/06/10 00:27:49 tom Exp $") /* * This is not a full implementation of a field type, but adds some @@ -119,7 +119,7 @@ _nc_generic_fieldtype(bool (*const field_check) (FORM *, FIELD *, const void *), if (res) { *res = *_nc_Default_FieldType; - res->status |= (_HAS_ARGS | _GENERIC); + SetStatus(res, (_HAS_ARGS | _GENERIC)); res->fieldcheck.gfcheck = field_check; res->charcheck.gccheck = char_check; res->genericarg = Generic_This_Type; @@ -288,7 +288,10 @@ _nc_form_cursor(const FORM *form, int *pRow, int *pCol) #else extern void _nc_fty_generic(void); -void _nc_fty_generic(void) { } +void +_nc_fty_generic(void) +{ +} #endif /* fty_generic.c ends here */