explicitely declare void function args and static functions

This commit is contained in:
marschap
2007-04-11 12:30:15 +00:00
parent dbecc44205
commit 9d76abd93a
6 changed files with 21 additions and 15 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ static int transfer_screen = 0; /* by default, transfer screen is not shown */
/* reads and parses configuration file */
static int
iface_process_configfile()
iface_process_configfile(void)
{
const char *unit;
+6
View File
@@ -1,6 +1,12 @@
/** \file machine.h
* Common data types and function declarations
* for OS specific sources in \c machine_{Darwin,Linux,SunOS,*BSD}.c.
*
* In order to port the lcdproc client to a new cwoperating system,
* a new file \c machine_XXX.c (where \c XXX = OS name) needs to be
* created, that provides functions to the function declarations below.
* The aleady existing \c machine_*.c files can be used as examples.
*
*/
#ifndef _lcdproc_machine_h_
+7 -7
View File
@@ -60,7 +60,7 @@ static struct utsname unamebuf;
static void HelpScreen(int exit_state);
static void exit_program(int val);
static void main_loop();
static void main_loop(void);
static int process_configfile(char *cfgfile);
@@ -115,25 +115,25 @@ char *configfile = NULL;
char *displayname = NULL;
const char *get_hostname()
const char *get_hostname(void)
{
return(unamebuf.nodename);
}
const char *get_sysname()
const char *get_sysname(void)
{
return(unamebuf.sysname);
}
const char *get_sysrelease()
const char *get_sysrelease(void)
{
return(unamebuf.release);
}
int set_mode(int shortname, char *longname, int state)
static int set_mode(int shortname, char *longname, int state)
{
int k;
@@ -158,7 +158,7 @@ int set_mode(int shortname, char *longname, int state)
}
void clear_modes()
static void clear_modes(void)
{
int k;
@@ -512,7 +512,7 @@ menus_init ()
// Main program loop...
//
void
main_loop()
main_loop(void)
{
int i = 0, j;
int connected = 0;
+3 -3
View File
@@ -57,9 +57,9 @@ typedef struct mode
#define LCD_MAX_WIDTH 80
#define LCD_MAX_HEIGHT 80
const char *get_hostname();
const char *get_sysname();
const char *get_sysrelease();
const char *get_hostname(void);
const char *get_sysname(void);
const char *get_sysrelease(void);
#ifndef min
# define min(a,b) (((a) < (b)) ? (a) : (b))
+2 -2
View File
@@ -27,7 +27,7 @@
int
mode_init()
mode_init(void)
{
machine_init();
@@ -35,7 +35,7 @@ mode_init()
}
void
mode_close()
mode_close(void)
{
machine_close();
}
+2 -2
View File
@@ -4,8 +4,8 @@
#include "main.h"
int mode_init();
void mode_close();
int mode_init(void);
void mode_close(void);
int update_screen(mode * m, int display);