X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fportab%2Fportabtest.c;h=09afbfd18cb13d1c70495c2175e8df5422d4dd00;hp=055799eabb68be0a4ae88911a7b8e5b077e435f1;hb=343a90dc376eb9979151752ec33c64ca45b04802;hpb=444fdcf9057de8591e96cca07aec6999ed82aa5d diff --git a/src/portab/portabtest.c b/src/portab/portabtest.c index 055799ea..09afbfd1 100644 --- a/src/portab/portabtest.c +++ b/src/portab/portabtest.c @@ -7,14 +7,14 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * Please read the file COPYING, README and AUTHORS for more information. - * - * test program for portab.h and friends ;-) */ - #include "portab.h" -static char UNUSED id[] = "$Id: portabtest.c,v 1.11 2003/01/04 10:40:01 alex Exp $"; +/** + * @file + * Test program for portab.h and friends ;-) + */ #include "imp.h" #include @@ -25,20 +25,17 @@ static char UNUSED id[] = "$Id: portabtest.c,v 1.11 2003/01/04 10:40:01 alex Exp #include "exp.h" -LOCAL VOID Panic PARAMS (( CHAR *Reason, INT Code )); +static void Panic PARAMS (( char *Reason, int Code )); GLOBAL int -main( VOID ) +main( void ) { /* validate datatypes */ - if( FALSE != 0 ) Panic( "FALSE", 1 ); - if( TRUE != 1 ) Panic( "TRUE", 1 ); - if( sizeof( INT8 ) != 1 ) Panic( "INT8", 1 ); + if( false != 0 ) Panic( "false", 1 ); + if( true != 1 ) Panic( "true", 1 ); if( sizeof( UINT8 ) != 1 ) Panic( "UINT8", 1 ); - if( sizeof( INT16 ) != 2 ) Panic( "INT16", 1 ); if( sizeof( UINT16 ) != 2 ) Panic( "UINT16", 1 ); - if( sizeof( INT32 ) != 4 ) Panic( "INT32", 1 ); if( sizeof( UINT32 ) != 4 ) Panic( "UINT32", 1 ); #ifdef PROTOTYPES @@ -54,8 +51,8 @@ main( VOID ) } /* portab_check_types */ -LOCAL VOID -Panic( CHAR *Reason, INT Code ) +static void +Panic( char *Reason, int Code ) { /* Oops, something failed!? */ fprintf( stderr, "Oops, test for %s failed!?", Reason );