wmail: fix prototypes of functions accepting no parameters.

This commit is contained in:
Jeremy Sowden 2019-05-27 22:52:10 +01:00 committed by Carlos R. Mafra
parent 49def3a155
commit e4760eb90f
2 changed files with 27 additions and 27 deletions

View file

@ -169,7 +169,7 @@ void AddSenderToSkipList( char *sender )
config.skipNames = newList; config.skipNames = newList;
} }
void ResetConfigStrings() void ResetConfigStrings( void )
{ {
if( !( config.givenOptions & CL_MAILBOX )) { if( !( config.givenOptions & CL_MAILBOX )) {
free( config.mailBox ); free( config.mailBox );
@ -222,7 +222,7 @@ void ResetConfigStrings()
} }
} }
void PostProcessConfiguration() void PostProcessConfiguration( void )
{ {
if( config.display == NULL ) if( config.display == NULL )
config.display = strdup( WMAIL_DISPLAY ); config.display = strdup( WMAIL_DISPLAY );

View file

@ -161,8 +161,8 @@ static DAProgramOption options[] = {
void PreparePixmaps( bool freeThemFirst ); void PreparePixmaps( bool freeThemFirst );
void TimerHandler( int dummy ); void TimerHandler( int dummy );
void CheckMBox(); void CheckMBox( void );
void CheckMaildir(); void CheckMaildir( void );
int TraverseDirectory( const char *name, bool isNewMail ); int TraverseDirectory( const char *name, bool isNewMail );
name_t *GetMail( unsigned long checksum ); name_t *GetMail( unsigned long checksum );
void UpdatePixmap( bool flashMailSymbol ); void UpdatePixmap( bool flashMailSymbol );
@ -172,30 +172,30 @@ void ParseMaildirFile( const char *fileName, unsigned long checksum,
char *ParseFromField( char *buf ); char *ParseFromField( char *buf );
bool SkipSender( char *address ); bool SkipSender( char *address );
void InsertName( char *name, unsigned long checksum, flag_t flag ); void InsertName( char *name, unsigned long checksum, flag_t flag );
void RemoveLastName(); void RemoveLastName( void );
void ClearAllNames(); void ClearAllNames( void );
void DrawTickerX11Font(); void DrawTickerX11Font( void );
void DrawTickerBuildinFont(); void DrawTickerBuildinFont( void );
void ButtonPressed( int button, int state, int x, int y ); void ButtonPressed( int button, int state, int x, int y );
void ButtonReleased( int button, int state, int x, int y ); void ButtonReleased( int button, int state, int x, int y );
char *XpmColorLine( const char *colorName, char *colorLine, bool disposeLine ); char *XpmColorLine( const char *colorName, char *colorLine, bool disposeLine );
void ReadChecksumFile(); void ReadChecksumFile( void );
void WriteChecksumFile( bool writeAll ); void WriteChecksumFile( bool writeAll );
void UpdateChecksum( unsigned long *checksum, const char *buf ); void UpdateChecksum( unsigned long *checksum, const char *buf );
void RemoveChecksumFile(); void RemoveChecksumFile( void );
void SetMailFlags( flag_t flag ); void SetMailFlags( flag_t flag );
void MarkName( unsigned long checksum ); void MarkName( unsigned long checksum );
void DetermineState(); void DetermineState( void );
void UpdateConfiguration(); void UpdateConfiguration( void );
void CleanupNames(); void CleanupNames( void );
bool HasTickerWork(); bool HasTickerWork( void );
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// implementation // implementation
void SetTimer() void SetTimer( void )
{ {
struct itimerval timerVal; struct itimerval timerVal;
@ -471,7 +471,7 @@ void MarkName( unsigned long checksum )
} }
} }
void DetermineState() void DetermineState( void )
{ {
name_t *name; name_t *name;
@ -490,7 +490,7 @@ void DetermineState()
} }
} }
void ReadChecksumFile() void ReadChecksumFile( void )
{ {
FILE *f = fopen( config.checksumFileName, "rb" ); FILE *f = fopen( config.checksumFileName, "rb" );
if( f != NULL ) while( !feof( f )) { if( f != NULL ) while( !feof( f )) {
@ -536,7 +536,7 @@ void UpdateChecksum( unsigned long *checksum, const char *buf )
} }
} }
void RemoveChecksumFile() void RemoveChecksumFile( void )
{ {
TRACE( "removing checksum-file\n" ); TRACE( "removing checksum-file\n" );
remove( config.checksumFileName ); remove( config.checksumFileName );
@ -570,7 +570,7 @@ void TimerHandler( int dummy )
checkMail = 0; checkMail = 0;
} }
void CheckMBox() void CheckMBox( void )
{ {
struct stat fileStat; struct stat fileStat;
@ -607,7 +607,7 @@ void CheckMBox()
} }
} }
void CheckMaildir() void CheckMaildir( void )
{ {
DIR *dir = NULL; DIR *dir = NULL;
int lastState = state; int lastState = state;
@ -1104,7 +1104,7 @@ void InsertName( char *name, unsigned long checksum, flag_t flag )
namesChanged = true; namesChanged = true;
} }
void RemoveLastName() void RemoveLastName( void )
{ {
if( names != NULL ) { if( names != NULL ) {
name_t *name = names; name_t *name = names;
@ -1114,7 +1114,7 @@ void RemoveLastName()
} }
} }
void ClearAllNames() void ClearAllNames( void )
{ {
name_t *name, *nextName; name_t *name, *nextName;
@ -1139,7 +1139,7 @@ void SetMailFlags( flag_t flag )
name->flag |= flag; name->flag |= flag;
} }
void DrawTickerX11Font() void DrawTickerX11Font( void )
{ {
// 49x21+7+20 out-drawable size // 49x21+7+20 out-drawable size
@ -1177,7 +1177,7 @@ void DrawTickerX11Font()
} }
} }
void DrawTickerBuildinFont() void DrawTickerBuildinFont( void )
{ {
// 49x21+7+20 out-drawable size // 49x21+7+20 out-drawable size
// 14x21 font-character size // 14x21 font-character size
@ -1303,7 +1303,7 @@ char *XpmColorLine( const char *colorName, char *colorLine, bool disposeLine )
return newLine; return newLine;
} }
void UpdateConfiguration() void UpdateConfiguration( void )
{ {
struct stat fileStat; struct stat fileStat;
@ -1329,7 +1329,7 @@ void UpdateConfiguration()
SetTimer(); SetTimer();
} }
void CleanupNames() void CleanupNames( void )
{ {
name_t *name, *last = NULL, *nextName; name_t *name, *last = NULL, *nextName;
@ -1356,7 +1356,7 @@ void CleanupNames()
} }
} }
bool HasTickerWork() bool HasTickerWork( void )
{ {
name_t *nextTickerName; name_t *nextTickerName;