ANSIfication of stuff (mostly missing argument types in declarations)
This commit is contained in:
@@ -76,9 +76,7 @@ static void errExit(char *pmessage)
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
int main(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
char *pbeg;
|
||||
char *pend;
|
||||
|
||||
@@ -2018,7 +2018,7 @@ void caTaskExitTest ( unsigned interestLevel )
|
||||
showProgressEnd ( interestLevel );
|
||||
}
|
||||
|
||||
void verifyDataTypeMacros ()
|
||||
void verifyDataTypeMacros (void)
|
||||
{
|
||||
int type;
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@ static void scanShutdown(void *arg)
|
||||
epicsEventWait(startStopEvent);
|
||||
}
|
||||
|
||||
long scanInit()
|
||||
long scanInit(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -392,7 +392,7 @@ int scanpel(int event_number) /* print event list */
|
||||
return 0;
|
||||
}
|
||||
|
||||
int scanpiol() /* print io_event list */
|
||||
int scanpiol(void) /* print io_event list */
|
||||
{
|
||||
io_scan_list *piosl;
|
||||
int prio;
|
||||
@@ -562,7 +562,7 @@ static void periodicTask(void *arg)
|
||||
}
|
||||
|
||||
|
||||
static void initPeriodic()
|
||||
static void initPeriodic(void)
|
||||
{
|
||||
dbMenu *pmenu;
|
||||
periodic_scan_list *ppsl;
|
||||
|
||||
@@ -43,7 +43,7 @@ epicsShareFunc long epicsShareAPI dbtpf(const char *pname,const char *pvalue);
|
||||
epicsShareFunc long epicsShareAPI dbior(
|
||||
const char *pdrvName,int interest_level);
|
||||
/*Hardware Configuration Report*/
|
||||
epicsShareFunc int epicsShareAPI dbhcr();
|
||||
epicsShareFunc int epicsShareAPI dbhcr(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
DBBASE *pdbbase = NULL;
|
||||
|
||||
void usage()
|
||||
void usage(void)
|
||||
{
|
||||
fprintf(stderr, "Usage:\n\tdbExpand -Ipath -ooutfile "
|
||||
"-S macro=value file1.dbd file2.dbd ...\n");
|
||||
|
||||
@@ -33,10 +33,10 @@
|
||||
#include "epicsExport.h"
|
||||
|
||||
/* added for Channel Access Links */
|
||||
static long init_record();
|
||||
static long init_record(aoRecord *prec);
|
||||
|
||||
/* Create the dset for devAoSoft */
|
||||
static long write_ao();
|
||||
static long write_ao(aoRecord *prec);
|
||||
struct {
|
||||
long number;
|
||||
DEVSUPFUN report;
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "epicsExport.h"
|
||||
|
||||
/* Create the dset for devAoSoftCallback */
|
||||
static long write_ao();
|
||||
static long write_ao(aoRecord *prec);
|
||||
struct {
|
||||
long number;
|
||||
DEVSUPFUN report;
|
||||
|
||||
@@ -31,10 +31,10 @@
|
||||
#include "boRecord.h"
|
||||
#include "epicsExport.h"
|
||||
|
||||
static long init_record();
|
||||
static long init_record(boRecord *prec);
|
||||
|
||||
/* Create the dset for devBoSoft */
|
||||
static long write_bo();
|
||||
static long write_bo(boRecord *prec);
|
||||
|
||||
struct {
|
||||
long number;
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "epicsExport.h"
|
||||
|
||||
/* Create the dset for devBoCallbackSoft */
|
||||
static long write_bo();
|
||||
static long write_bo(boRecord *prec);
|
||||
|
||||
struct {
|
||||
long number;
|
||||
|
||||
@@ -31,10 +31,10 @@
|
||||
#include "epicsExport.h"
|
||||
|
||||
/* added for Channel Access Links */
|
||||
static long init_record();
|
||||
static long init_record(boRecord *prec);
|
||||
|
||||
/* Create the dset for devBoSoftRaw */
|
||||
static long write_bo();
|
||||
static long write_bo(boRecord *prec);
|
||||
|
||||
struct {
|
||||
long number;
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "calcoutRecord.h"
|
||||
#include "epicsExport.h"
|
||||
|
||||
static long write_calcout();
|
||||
static long write_calcout(calcoutRecord *prec);
|
||||
|
||||
struct {
|
||||
long number;
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "calcoutRecord.h"
|
||||
#include "epicsExport.h"
|
||||
|
||||
static long write_calcout();
|
||||
static long write_calcout(calcoutRecord *prec);
|
||||
|
||||
struct {
|
||||
long number;
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
#include "epicsExport.h"
|
||||
|
||||
/* Create the dset for devHistogramSoft */
|
||||
static long init_record();
|
||||
static long read_histogram();
|
||||
static long init_record(histogramRecord *prec);
|
||||
static long read_histogram(histogramRecord *prec);
|
||||
struct {
|
||||
long number;
|
||||
DEVSUPFUN report;
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
#include "epicsExport.h"
|
||||
|
||||
/* Create the dset for devLoSoft */
|
||||
static long init_record();
|
||||
static long write_longout();
|
||||
static long init_record(longoutRecord *prec);
|
||||
static long write_longout(longoutRecord *prec);
|
||||
struct {
|
||||
long number;
|
||||
DEVSUPFUN report;
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include "epicsExport.h"
|
||||
|
||||
/* Create the dset for devLoSoftCallback */
|
||||
static long write_longout();
|
||||
static long write_longout(longoutRecord *prec);
|
||||
struct {
|
||||
long number;
|
||||
DEVSUPFUN report;
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
#include "epicsExport.h"
|
||||
|
||||
/* Create the dset for devMbboSoft */
|
||||
static long init_record();
|
||||
static long write_mbbo();
|
||||
static long init_record(mbboDirectRecord *prec);
|
||||
static long write_mbbo(mbboDirectRecord *prec);
|
||||
struct {
|
||||
long number;
|
||||
DEVSUPFUN report;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "epicsExport.h"
|
||||
|
||||
/* Create the dset for devMbboSoft */
|
||||
static long write_mbbo();
|
||||
static long write_mbbo(mbboDirectRecord *prec);
|
||||
struct {
|
||||
long number;
|
||||
DEVSUPFUN report;
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
|
||||
|
||||
/* Create the dset for devMbboDirectSoftRaw */
|
||||
static long init_record();
|
||||
static long write_mbbo();
|
||||
static long init_record(mbboDirectRecord *prec);
|
||||
static long write_mbbo(mbboDirectRecord *prec);
|
||||
struct {
|
||||
long number;
|
||||
DEVSUPFUN report;
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
#include "epicsExport.h"
|
||||
|
||||
/* Create the dset for devMbboSoft */
|
||||
static long init_record();
|
||||
static long write_mbbo();
|
||||
static long init_record(mbboRecord *prec);
|
||||
static long write_mbbo(mbboRecord *prec);
|
||||
struct {
|
||||
long number;
|
||||
DEVSUPFUN report;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "epicsExport.h"
|
||||
|
||||
/* Create the dset for devMbboSoftCallback */
|
||||
static long write_mbbo();
|
||||
static long write_mbbo(mbboRecord *prec);
|
||||
struct {
|
||||
long number;
|
||||
DEVSUPFUN report;
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
#include "epicsExport.h"
|
||||
|
||||
/* Create the dset for devMbboSoftRaw */
|
||||
static long init_record();
|
||||
static long write_mbbo();
|
||||
static long init_record(mbboRecord *prec);
|
||||
static long write_mbbo(mbboRecord *prec);
|
||||
struct {
|
||||
long number;
|
||||
DEVSUPFUN report;
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
#include "epicsExport.h"
|
||||
|
||||
/* Create the dset for devSiSoft */
|
||||
static long init_record();
|
||||
static long read_stringin();
|
||||
static long init_record(stringinRecord *prec);
|
||||
static long read_stringin(stringinRecord *prec);
|
||||
|
||||
struct {
|
||||
long number;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "epicsExport.h"
|
||||
|
||||
/* Create the dset for devSoSoft */
|
||||
static long write_stringout();
|
||||
static long write_stringout(stringoutRecord *prec);
|
||||
struct {
|
||||
long number;
|
||||
DEVSUPFUN report;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "epicsExport.h"
|
||||
|
||||
/* Create the dset for devSoSoftCallback */
|
||||
static long write_stringout();
|
||||
static long write_stringout(stringoutRecord *prec);
|
||||
struct {
|
||||
long number;
|
||||
DEVSUPFUN report;
|
||||
|
||||
@@ -76,7 +76,7 @@ static FILE *dfd;
|
||||
/*
|
||||
* maximum, minimum value for each ait type - joh
|
||||
*/
|
||||
void initMinMaxAIT ()
|
||||
void initMinMaxAIT (void)
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
|
||||
@@ -429,7 +429,7 @@ static unsigned short seed = 0xa3bf;
|
||||
static unsigned short multy = 191 * 8 + 5; /* 191 % 8 == 5 */
|
||||
static unsigned short addy = 0x3141;
|
||||
|
||||
static double calcRandom()
|
||||
static double calcRandom(void)
|
||||
{
|
||||
seed = (seed * multy) + addy;
|
||||
|
||||
|
||||
2
src/libCom/env/envSubr.c
vendored
2
src/libCom/env/envSubr.c
vendored
@@ -368,7 +368,7 @@ const ENV_PARAM *pParam) /* pointer to config param structure */
|
||||
*
|
||||
*-*/
|
||||
long epicsShareAPI
|
||||
epicsPrtEnvParams()
|
||||
epicsPrtEnvParams(void)
|
||||
{
|
||||
const ENV_PARAM **ppParam = env_param_list;
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ extern ERRSYMTAB_ID errSymTbl;
|
||||
* ell nodes that have a common hash number.
|
||||
*
|
||||
***************************************************************/
|
||||
int epicsShareAPI errSymBld()
|
||||
int epicsShareAPI errSymBld(void)
|
||||
{
|
||||
ERRSYMBOL *errArray = errSymTbl->symbols;
|
||||
ELLLIST *perrnumlist = &errnumlist;
|
||||
@@ -245,7 +245,7 @@ void epicsShareAPI errSymLookup (long status, char * pBuf, unsigned bufLength)
|
||||
/****************************************************************
|
||||
* errSymDump
|
||||
***************************************************************/
|
||||
void epicsShareAPI errSymDump()
|
||||
void epicsShareAPI errSymDump(void)
|
||||
{
|
||||
ERRNUMNODE **phashnode = NULL;
|
||||
ERRNUMNODE *pNextNode;
|
||||
|
||||
@@ -279,7 +279,7 @@ epicsShareFunc void epicsShareAPI errlogSetSevToLog(
|
||||
pvtData.sevToLog = severity;
|
||||
}
|
||||
|
||||
epicsShareFunc errlogSevEnum epicsShareAPI errlogGetSevToLog()
|
||||
epicsShareFunc errlogSevEnum epicsShareAPI errlogGetSevToLog(void)
|
||||
{
|
||||
errlogInit(0);
|
||||
return pvtData.sevToLog;
|
||||
@@ -512,7 +512,7 @@ static void errlogThread(void)
|
||||
epicsEventSignal(pvtData.waitForExit);
|
||||
}
|
||||
|
||||
static msgNode *msgbufGetNode()
|
||||
static msgNode *msgbufGetNode(void)
|
||||
{
|
||||
char *pbuffer = (char *)pvtData.pbuffer;
|
||||
msgNode *pnextSend = 0;
|
||||
@@ -597,7 +597,7 @@ static char * msgbufGetSend(int *noConsoleMessage)
|
||||
return(pnextSend->message);
|
||||
}
|
||||
|
||||
static void msgbufFreeSend()
|
||||
static void msgbufFreeSend(void)
|
||||
{
|
||||
msgNode *pnextSend;
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ epicsShareFunc void * epicsShareAPI registryFind(
|
||||
return(pentry->userPvt);
|
||||
}
|
||||
|
||||
epicsShareFunc void epicsShareAPI registryFree()
|
||||
epicsShareFunc void epicsShareAPI registryFree(void)
|
||||
{
|
||||
if(!gphPvt) return;
|
||||
gphFreeMem(gphPvt);
|
||||
|
||||
@@ -25,7 +25,7 @@ epicsShareFunc int epicsShareAPI registryChange(
|
||||
void *registryID,const char *name,void *data);
|
||||
|
||||
epicsShareFunc int epicsShareAPI registrySetTableSize(int size);
|
||||
epicsShareFunc void epicsShareAPI registryFree();
|
||||
epicsShareFunc void epicsShareAPI registryFree(void);
|
||||
epicsShareFunc int epicsShareAPI registryDump(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -72,7 +72,7 @@ LOCAL int getConfig (struct in_addr *pserver_addr, unsigned short *pserver_port)
|
||||
/*
|
||||
* iocLogFlush ()
|
||||
*/
|
||||
void epicsShareAPI epicsShareAPI iocLogFlush ()
|
||||
void epicsShareAPI epicsShareAPI iocLogFlush (void)
|
||||
{
|
||||
if (iocLogClient!=NULL) {
|
||||
logClientFlush (iocLogClient);
|
||||
@@ -139,7 +139,7 @@ void epicsShareAPI iocLogShow (unsigned level)
|
||||
/*
|
||||
* logClientInit(); deprecated
|
||||
*/
|
||||
logClientId epicsShareAPI logClientInit ()
|
||||
logClientId epicsShareAPI logClientInit (void)
|
||||
{
|
||||
return iocLogClientInit ();
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ extern "C" {
|
||||
epicsShareExtern int iocLogDisable;
|
||||
epicsShareFunc int epicsShareAPI iocLogInit (void);
|
||||
epicsShareFunc void epicsShareAPI iocLogShow (unsigned level);
|
||||
epicsShareFunc void epicsShareAPI iocLogFlush ();
|
||||
epicsShareFunc void epicsShareAPI iocLogFlush (void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ static void destroyExitPvt ( exitPvt * pep )
|
||||
free ( pep );
|
||||
}
|
||||
|
||||
static exitPvt * createExitPvt ()
|
||||
static exitPvt * createExitPvt (void)
|
||||
{
|
||||
exitPvt * pep = calloc ( 1, sizeof ( * pep ) );
|
||||
if ( pep ) {
|
||||
|
||||
@@ -130,7 +130,7 @@ void testTodoBegin(const char *why) {
|
||||
epicsMutexUnlock(testLock);
|
||||
}
|
||||
|
||||
void testTodoEnd() {
|
||||
void testTodoEnd(void) {
|
||||
todo = NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ epicsShareFunc void testFail(const char *fmt, ...)
|
||||
EPICS_PRINTF_STYLE(1, 2);
|
||||
epicsShareFunc void testSkip(int skip, const char *why);
|
||||
epicsShareFunc void testTodoBegin(const char *why);
|
||||
epicsShareFunc void testTodoEnd();
|
||||
epicsShareFunc void testTodoEnd(void);
|
||||
epicsShareFunc int testDiag(const char *fmt, ...)
|
||||
EPICS_PRINTF_STYLE(1, 2);
|
||||
epicsShareFunc void testAbort(const char *fmt, ...)
|
||||
|
||||
@@ -161,7 +161,7 @@ static void twdInitOnce(void *arg)
|
||||
epicsAtExit(twdShutdown, NULL);
|
||||
}
|
||||
|
||||
void taskwdInit()
|
||||
void taskwdInit(void)
|
||||
{
|
||||
static epicsThreadOnceId twdOnceFlag = EPICS_THREAD_ONCE_INIT;
|
||||
epicsThreadOnce(&twdOnceFlag, twdInitOnce, NULL);
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#define LINE_1 "# This is first line of sample report\n"
|
||||
#define LINE_2 "# This is second and last line of sample report\n"
|
||||
|
||||
static void testEpicsSnprintf() {
|
||||
static void testEpicsSnprintf(void) {
|
||||
char exbuffer[80], buffer[80];
|
||||
const int ivalue = 1234;
|
||||
const float fvalue = 1.23e4;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "epicsString.h"
|
||||
#include "testMain.h"
|
||||
|
||||
void testChars() {
|
||||
void testChars(void) {
|
||||
int i;
|
||||
char input[2] = {0, 0};
|
||||
char escaped[20];
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#define testOk1_success 1
|
||||
#define testOk1_failure 0
|
||||
|
||||
int main () {
|
||||
int main (void) {
|
||||
testPlan(11);
|
||||
testOk(1, "testOk(1)");
|
||||
testOk(0, "testOk(0)");
|
||||
|
||||
@@ -94,7 +94,7 @@ struct mbbodset { /* multi bit binary output dset */
|
||||
static void checkAlarms(mbboRecord *);
|
||||
static void convert(mbboRecord *);
|
||||
static void monitor(mbboRecord *);
|
||||
static long writeValue();
|
||||
static long writeValue(mbboRecord *);
|
||||
|
||||
|
||||
static void init_common(mbboRecord *prec)
|
||||
|
||||
@@ -1570,7 +1570,7 @@ LOCAL void putNotifyErrorReply ( struct client *client, caHdrLargeArray *mp, int
|
||||
SEND_UNLOCK ( client );
|
||||
}
|
||||
|
||||
void initializePutNotifyFreeList ()
|
||||
void initializePutNotifyFreeList (void)
|
||||
{
|
||||
if ( ! rsrvPutNotifyFreeList ) {
|
||||
freeListInitPvt ( &rsrvPutNotifyFreeList,
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
/*
|
||||
* clean_addrq
|
||||
*/
|
||||
LOCAL void clean_addrq()
|
||||
LOCAL void clean_addrq(void)
|
||||
{
|
||||
struct channel_in_use * pciu;
|
||||
struct channel_in_use * pnextciu;
|
||||
|
||||
@@ -82,7 +82,7 @@ char *sprintf(); /* keep lint happy */
|
||||
void *memset();
|
||||
#else
|
||||
#if !defined(ultrix) && !defined(NeXT) && !defined(sgi) && !defined(hppa) && !defined(__osf__)
|
||||
char *memset();
|
||||
char *memset(void *, int, size_t);
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -95,7 +95,7 @@ static int sighupPipe[2];
|
||||
* main()
|
||||
*
|
||||
*/
|
||||
int main()
|
||||
int main(void)
|
||||
{
|
||||
struct sockaddr_in serverAddr; /* server's address */
|
||||
struct timeval timeout;
|
||||
@@ -953,7 +953,7 @@ static void serviceSighupRequest(void *pParam)
|
||||
*
|
||||
*
|
||||
*/
|
||||
static int getDirectory()
|
||||
static int getDirectory(void)
|
||||
{
|
||||
FILE *pipe;
|
||||
char dir[256];
|
||||
|
||||
Reference in New Issue
Block a user