comparison src/client.c @ 58:b4e6f7f96135 noffle

[svn] Add some intermediate variables for easier debugging in needsMark(). It seems that thread mode is sometimes not working. Changed some variable types and used some casts to avoid compiler warnings about signedness. In general, int should be used for parameters for allowing a signedness assertion in the function.
author enz
date Fri, 12 May 2000 17:52:07 +0100
parents 84e32c84666b
children adf0af5152f7
comparison
equal deleted inserted replaced
57:84e32c84666b 58:b4e6f7f96135
1 /* 1 /*
2 client.c 2 client.c
3 3
4 $Id: client.c 63 2000-05-12 15:47:29Z enz $ 4 $Id: client.c 64 2000-05-12 16:52:07Z enz $
5 */ 5 */
6 6
7 #if HAVE_CONFIG_H 7 #if HAVE_CONFIG_H
8 #include <config.h> 8 #include <config.h>
9 #endif 9 #endif
356 } 356 }
357 357
358 static Bool 358 static Bool
359 isForbiddenGroupName( const char *name ) 359 isForbiddenGroupName( const char *name )
360 { 360 {
361 int i; 361 size_t i;
362 362
363 for ( i = 0; 363 for ( i = 0;
364 i < sizeof( forbiddenGroupNames ) / 364 i < sizeof( forbiddenGroupNames ) /
365 sizeof( struct ForbiddenGroupName ); 365 sizeof( struct ForbiddenGroupName );
366 i++ ) 366 i++ )
810 Str msgId; 810 Str msgId;
811 DynStr *s; 811 DynStr *s;
812 const char *p; 812 const char *p;
813 813
814 Log_inf( "Retrieving article list" ); 814 Log_inf( "Retrieving article list" );
815 s = new_DynStr( strlen( list ) ); 815 s = new_DynStr( (int)strlen( list ) );
816 p = list; 816 p = list;
817 while ( ( p = Utl_getLn( msgId, p ) ) ) 817 while ( ( p = Utl_getLn( msgId, p ) ) )
818 if ( ! Db_contains( msgId ) ) 818 if ( ! Db_contains( msgId ) )
819 Log_err( "Skipping retrieving of %s (not prepared in database)", 819 Log_err( "Skipping retrieving of %s (not prepared in database)",
820 msgId ); 820 msgId );