explicitely declare void function args and static functions
This commit is contained in:
@@ -49,7 +49,7 @@ static int transfer_screen = 0; /* by default, transfer screen is not shown */
|
|||||||
|
|
||||||
/* reads and parses configuration file */
|
/* reads and parses configuration file */
|
||||||
static int
|
static int
|
||||||
iface_process_configfile()
|
iface_process_configfile(void)
|
||||||
{
|
{
|
||||||
const char *unit;
|
const char *unit;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
/** \file machine.h
|
/** \file machine.h
|
||||||
* Common data types and function declarations
|
* Common data types and function declarations
|
||||||
* for OS specific sources in \c machine_{Darwin,Linux,SunOS,*BSD}.c.
|
* 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_
|
#ifndef _lcdproc_machine_h_
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ static struct utsname unamebuf;
|
|||||||
|
|
||||||
static void HelpScreen(int exit_state);
|
static void HelpScreen(int exit_state);
|
||||||
static void exit_program(int val);
|
static void exit_program(int val);
|
||||||
static void main_loop();
|
static void main_loop(void);
|
||||||
static int process_configfile(char *cfgfile);
|
static int process_configfile(char *cfgfile);
|
||||||
|
|
||||||
|
|
||||||
@@ -115,25 +115,25 @@ char *configfile = NULL;
|
|||||||
char *displayname = NULL;
|
char *displayname = NULL;
|
||||||
|
|
||||||
|
|
||||||
const char *get_hostname()
|
const char *get_hostname(void)
|
||||||
{
|
{
|
||||||
return(unamebuf.nodename);
|
return(unamebuf.nodename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const char *get_sysname()
|
const char *get_sysname(void)
|
||||||
{
|
{
|
||||||
return(unamebuf.sysname);
|
return(unamebuf.sysname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const char *get_sysrelease()
|
const char *get_sysrelease(void)
|
||||||
{
|
{
|
||||||
return(unamebuf.release);
|
return(unamebuf.release);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int set_mode(int shortname, char *longname, int state)
|
static int set_mode(int shortname, char *longname, int state)
|
||||||
{
|
{
|
||||||
int k;
|
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;
|
int k;
|
||||||
|
|
||||||
@@ -512,7 +512,7 @@ menus_init ()
|
|||||||
// Main program loop...
|
// Main program loop...
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
main_loop()
|
main_loop(void)
|
||||||
{
|
{
|
||||||
int i = 0, j;
|
int i = 0, j;
|
||||||
int connected = 0;
|
int connected = 0;
|
||||||
|
|||||||
@@ -57,9 +57,9 @@ typedef struct mode
|
|||||||
#define LCD_MAX_WIDTH 80
|
#define LCD_MAX_WIDTH 80
|
||||||
#define LCD_MAX_HEIGHT 80
|
#define LCD_MAX_HEIGHT 80
|
||||||
|
|
||||||
const char *get_hostname();
|
const char *get_hostname(void);
|
||||||
const char *get_sysname();
|
const char *get_sysname(void);
|
||||||
const char *get_sysrelease();
|
const char *get_sysrelease(void);
|
||||||
|
|
||||||
#ifndef min
|
#ifndef min
|
||||||
# define min(a,b) (((a) < (b)) ? (a) : (b))
|
# define min(a,b) (((a) < (b)) ? (a) : (b))
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
mode_init()
|
mode_init(void)
|
||||||
{
|
{
|
||||||
machine_init();
|
machine_init();
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ mode_init()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
mode_close()
|
mode_close(void)
|
||||||
{
|
{
|
||||||
machine_close();
|
machine_close();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
|
|
||||||
int mode_init();
|
int mode_init(void);
|
||||||
void mode_close();
|
void mode_close(void);
|
||||||
|
|
||||||
int update_screen(mode * m, int display);
|
int update_screen(mode * m, int display);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user