From a5ebba6be35655ebd3d4f45b16617bda46b05e6a Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Thu, 26 Jul 2001 15:57:03 +0000 Subject: [PATCH] use ansi function prototypes --- src/dev/softDev/devAiSoft.c | 6 ++---- src/dev/softDev/devAoSoft.c | 6 ++---- src/dev/softDev/devBiSoft.c | 6 ++---- src/dev/softDev/devBiSoftRaw.c | 6 ++---- src/dev/softDev/devBoSoft.c | 6 ++---- src/dev/softDev/devBoSoftRaw.c | 6 ++---- src/dev/softDev/devEventSoft.c | 6 ++---- src/dev/softDev/devHistogramSoft.c | 6 ++---- src/dev/softDev/devLiSoft.c | 6 ++---- src/dev/softDev/devLoSoft.c | 6 ++---- src/dev/softDev/devMbbiDirectSoft.c | 6 ++---- src/dev/softDev/devMbbiDirectSoftRaw.c | 6 ++---- src/dev/softDev/devMbbiSoft.c | 6 ++---- src/dev/softDev/devMbbiSoftRaw.c | 6 ++---- src/dev/softDev/devMbboDirectSoft.c | 6 ++---- src/dev/softDev/devMbboDirectSoftRaw.c | 6 ++---- src/dev/softDev/devMbboSoft.c | 6 ++---- src/dev/softDev/devMbboSoftRaw.c | 6 ++---- src/dev/softDev/devSASoft.c | 6 ++---- src/dev/softDev/devSiSoft.c | 6 ++---- src/dev/softDev/devSoSoft.c | 3 +-- src/dev/softDev/devWfSoft.c | 6 ++---- 22 files changed, 43 insertions(+), 86 deletions(-) diff --git a/src/dev/softDev/devAiSoft.c b/src/dev/softDev/devAiSoft.c index 8e7b9959f..4d15a337a 100644 --- a/src/dev/softDev/devAiSoft.c +++ b/src/dev/softDev/devAiSoft.c @@ -67,8 +67,7 @@ struct { NULL }; -static long init_record(pai) - struct aiRecord *pai; +static long init_record(aiRecord *pai) { /* ai.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/ @@ -92,8 +91,7 @@ static long init_record(pai) return(0); } -static long read_ai(pai) - struct aiRecord *pai; +static long read_ai(aiRecord *pai) { long status; diff --git a/src/dev/softDev/devAoSoft.c b/src/dev/softDev/devAoSoft.c index 9ea06d2e9..ff3b8db8a 100644 --- a/src/dev/softDev/devAoSoft.c +++ b/src/dev/softDev/devAoSoft.c @@ -75,8 +75,7 @@ struct { NULL}; -static long init_record(pao) -struct aoRecord *pao; +static long init_record(aoRecord *pao) { long status=0; @@ -85,8 +84,7 @@ struct aoRecord *pao; } /* end init_record() */ -static long write_ao(pao) - struct aoRecord *pao; +static long write_ao(aoRecord *pao) { long status; diff --git a/src/dev/softDev/devBiSoft.c b/src/dev/softDev/devBiSoft.c index a73d35af4..2637fd677 100644 --- a/src/dev/softDev/devBiSoft.c +++ b/src/dev/softDev/devBiSoft.c @@ -63,8 +63,7 @@ struct { read_bi }; -static long init_record(pbi) - struct biRecord *pbi; +static long init_record(biRecord *pbi) { /* bi.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK */ @@ -85,8 +84,7 @@ static long init_record(pbi) return(0); } -static long read_bi(pbi) - struct biRecord *pbi; +static long read_bi(biRecord *pbi) { long status; diff --git a/src/dev/softDev/devBiSoftRaw.c b/src/dev/softDev/devBiSoftRaw.c index 9ccad786b..90dfba4ff 100644 --- a/src/dev/softDev/devBiSoftRaw.c +++ b/src/dev/softDev/devBiSoftRaw.c @@ -64,8 +64,7 @@ struct { read_bi }; -static long init_record(pbi) - struct biRecord *pbi; +static long init_record(biRecord *pbi) { /* bi.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/ @@ -85,8 +84,7 @@ static long init_record(pbi) return(0); } -static long read_bi(pbi) - struct biRecord *pbi; +static long read_bi(biRecord *pbi) { long status; diff --git a/src/dev/softDev/devBoSoft.c b/src/dev/softDev/devBoSoft.c index 99ed50e6c..98d91cb08 100644 --- a/src/dev/softDev/devBoSoft.c +++ b/src/dev/softDev/devBoSoft.c @@ -70,8 +70,7 @@ struct { NULL, write_bo}; -static long init_record(pbo) -struct boRecord *pbo; +static long init_record(boRecord *pbo) { long status=0; @@ -82,8 +81,7 @@ struct boRecord *pbo; } /* end init_record() */ -static long write_bo(pbo) - struct boRecord *pbo; +static long write_bo(boRecord *pbo) { long status; diff --git a/src/dev/softDev/devBoSoftRaw.c b/src/dev/softDev/devBoSoftRaw.c index c577310e8..ca71dac5f 100644 --- a/src/dev/softDev/devBoSoftRaw.c +++ b/src/dev/softDev/devBoSoftRaw.c @@ -70,8 +70,7 @@ struct { -static long init_record(pbo) -struct boRecord *pbo; +static long init_record(boRecord *pbo) { long status; @@ -81,8 +80,7 @@ struct boRecord *pbo; } /* end init_record() */ -static long write_bo(pbo) - struct boRecord *pbo; +static long write_bo(boRecord *pbo) { long status; diff --git a/src/dev/softDev/devEventSoft.c b/src/dev/softDev/devEventSoft.c index 478ec1bc0..b13e54953 100644 --- a/src/dev/softDev/devEventSoft.c +++ b/src/dev/softDev/devEventSoft.c @@ -63,8 +63,7 @@ struct { read_event }; -static long init_record(pevent) - struct eventRecord *pevent; +static long init_record(eventRecord *pevent) { /* event.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/ @@ -85,8 +84,7 @@ static long init_record(pevent) return(0); } -static long read_event(pevent) - struct eventRecord *pevent; +static long read_event(eventRecord *pevent) { long status; diff --git a/src/dev/softDev/devHistogramSoft.c b/src/dev/softDev/devHistogramSoft.c index b364aaf3b..7dc40f348 100644 --- a/src/dev/softDev/devHistogramSoft.c +++ b/src/dev/softDev/devHistogramSoft.c @@ -66,8 +66,7 @@ struct { NULL }; -static long init_record(phistogram) - struct histogramRecord *phistogram; +static long init_record(histogramRecord *phistogram) { long status = 0; @@ -89,8 +88,7 @@ static long init_record(phistogram) return(status); } -static long read_histogram(phistogram) - struct histogramRecord *phistogram; +static long read_histogram(histogramRecord *phistogram) { long status; diff --git a/src/dev/softDev/devLiSoft.c b/src/dev/softDev/devLiSoft.c index 35233a43b..4e168bd9c 100644 --- a/src/dev/softDev/devLiSoft.c +++ b/src/dev/softDev/devLiSoft.c @@ -63,8 +63,7 @@ struct { read_longin }; -static long init_record(plongin) - struct longinRecord *plongin; +static long init_record(longinRecord *plongin) { /* longin.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/ @@ -85,8 +84,7 @@ static long init_record(plongin) return(0); } -static long read_longin(plongin) - struct longinRecord *plongin; +static long read_longin(longinRecord *plongin) { long status; diff --git a/src/dev/softDev/devLoSoft.c b/src/dev/softDev/devLoSoft.c index f752c5e1a..3d5a3ab15 100644 --- a/src/dev/softDev/devLoSoft.c +++ b/src/dev/softDev/devLoSoft.c @@ -61,14 +61,12 @@ struct { write_longout }; -static long init_record(plongout) -struct longoutRecord *plongout; +static long init_record(longoutRecord *plongout) { return(0); } /* end init_record() */ -static long write_longout(plongout) - struct longoutRecord *plongout; +static long write_longout(longoutRecord *plongout) { long status; diff --git a/src/dev/softDev/devMbbiDirectSoft.c b/src/dev/softDev/devMbbiDirectSoft.c index d894fa113..7dd49dfe0 100644 --- a/src/dev/softDev/devMbbiDirectSoft.c +++ b/src/dev/softDev/devMbbiDirectSoft.c @@ -61,8 +61,7 @@ struct { read_mbbi }; -static long init_record(pmbbi) - struct mbbiDirectRecord *pmbbi; +static long init_record(mbbiDirectRecord *pmbbi) { /* mbbi.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/ @@ -83,8 +82,7 @@ static long init_record(pmbbi) return(0); } -static long read_mbbi(pmbbi) - struct mbbiDirectRecord *pmbbi; +static long read_mbbi(mbbiDirectRecord *pmbbi) { long status; diff --git a/src/dev/softDev/devMbbiDirectSoftRaw.c b/src/dev/softDev/devMbbiDirectSoftRaw.c index 8dcf38107..a5a105e88 100644 --- a/src/dev/softDev/devMbbiDirectSoftRaw.c +++ b/src/dev/softDev/devMbbiDirectSoftRaw.c @@ -61,8 +61,7 @@ struct { read_mbbi }; -static long init_record(pmbbi) - struct mbbiDirectRecord *pmbbi; +static long init_record(mbbiDirectRecord *pmbbi) { /* mbbi.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/ @@ -85,8 +84,7 @@ static long init_record(pmbbi) return(0); } -static long read_mbbi(pmbbi) - struct mbbiDirectRecord *pmbbi; +static long read_mbbi(mbbiDirectRecord *pmbbi) { long status; diff --git a/src/dev/softDev/devMbbiSoft.c b/src/dev/softDev/devMbbiSoft.c index 18526ca22..0dac158ec 100644 --- a/src/dev/softDev/devMbbiSoft.c +++ b/src/dev/softDev/devMbbiSoft.c @@ -63,8 +63,7 @@ struct { read_mbbi }; -static long init_record(pmbbi) - struct mbbiRecord *pmbbi; +static long init_record(mbbiRecord *pmbbi) { if (pmbbi->inp.type == CONSTANT) { @@ -74,8 +73,7 @@ static long init_record(pmbbi) return(0); } -static long read_mbbi(pmbbi) - struct mbbiRecord *pmbbi; +static long read_mbbi(mbbiRecord *pmbbi) { long status; diff --git a/src/dev/softDev/devMbbiSoftRaw.c b/src/dev/softDev/devMbbiSoftRaw.c index 98edb7f38..965d896e6 100644 --- a/src/dev/softDev/devMbbiSoftRaw.c +++ b/src/dev/softDev/devMbbiSoftRaw.c @@ -64,8 +64,7 @@ struct { read_mbbi }; -static long init_record(pmbbi) - struct mbbiRecord *pmbbi; +static long init_record(mbbiRecord *pmbbi) { if (pmbbi->inp.type == CONSTANT) { @@ -77,8 +76,7 @@ static long init_record(pmbbi) return(0); } -static long read_mbbi(pmbbi) - struct mbbiRecord *pmbbi; +static long read_mbbi(mbbiRecord *pmbbi) { long status; diff --git a/src/dev/softDev/devMbboDirectSoft.c b/src/dev/softDev/devMbboDirectSoft.c index b0f89a32b..e98b3b095 100644 --- a/src/dev/softDev/devMbboDirectSoft.c +++ b/src/dev/softDev/devMbboDirectSoft.c @@ -61,8 +61,7 @@ struct { write_mbbo }; -static long init_record(pmbbo) -struct mbboDirectRecord *pmbbo; +static long init_record(mbboDirectRecord *pmbbo) { long status = 0; @@ -72,8 +71,7 @@ struct mbboDirectRecord *pmbbo; } /* end init_record() */ -static long write_mbbo(pmbbo) - struct mbboDirectRecord *pmbbo; +static long write_mbbo(mbboDirectRecord *pmbbo) { long status; diff --git a/src/dev/softDev/devMbboDirectSoftRaw.c b/src/dev/softDev/devMbboDirectSoftRaw.c index fe3b28f03..de69fa41d 100644 --- a/src/dev/softDev/devMbboDirectSoftRaw.c +++ b/src/dev/softDev/devMbboDirectSoftRaw.c @@ -62,8 +62,7 @@ struct { write_mbbo }; -static long init_record(pmbbo) -struct mbboDirectRecord *pmbbo; +static long init_record(mbboDirectRecord *pmbbo) { long status = 0; @@ -75,8 +74,7 @@ struct mbboDirectRecord *pmbbo; return status; } /* end init_record() */ -static long write_mbbo(pmbbo) - struct mbboDirectRecord *pmbbo; +static long write_mbbo(mbboDirectRecord *pmbbo) { long status; unsigned long data; diff --git a/src/dev/softDev/devMbboSoft.c b/src/dev/softDev/devMbboSoft.c index f9d667e3e..5d50c8845 100644 --- a/src/dev/softDev/devMbboSoft.c +++ b/src/dev/softDev/devMbboSoft.c @@ -64,8 +64,7 @@ struct { write_mbbo }; -static long init_record(pmbbo) -struct mbboRecord *pmbbo; +static long init_record(mbboRecord *pmbbo) { long status=0; @@ -76,8 +75,7 @@ struct mbboRecord *pmbbo; } /* end init_record() */ -static long write_mbbo(pmbbo) - struct mbboRecord *pmbbo; +static long write_mbbo(mbboRecord *pmbbo) { long status; diff --git a/src/dev/softDev/devMbboSoftRaw.c b/src/dev/softDev/devMbboSoftRaw.c index c29276720..55bec55f0 100644 --- a/src/dev/softDev/devMbboSoftRaw.c +++ b/src/dev/softDev/devMbboSoftRaw.c @@ -61,8 +61,7 @@ struct { write_mbbo }; -static long init_record(pmbbo) -struct mbboRecord *pmbbo; +static long init_record(mbboRecord *pmbbo) { long status; @@ -76,8 +75,7 @@ struct mbboRecord *pmbbo; } /* end init_record() */ -static long write_mbbo(pmbbo) - struct mbboRecord *pmbbo; +static long write_mbbo(mbboRecord *pmbbo) { long status; unsigned long data; diff --git a/src/dev/softDev/devSASoft.c b/src/dev/softDev/devSASoft.c index e33ef7ffd..8bdc05a0e 100644 --- a/src/dev/softDev/devSASoft.c +++ b/src/dev/softDev/devSASoft.c @@ -71,8 +71,7 @@ struct { read_sa}; -static long init_record(psa) - struct subArrayRecord *psa; +static long init_record(subArrayRecord *psa) { /* sa.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/ @@ -92,8 +91,7 @@ static long init_record(psa) return(0); } -static long read_sa(psa) - struct subArrayRecord *psa; +static long read_sa(subArrayRecord *psa) { long status,ecount,nRequest; diff --git a/src/dev/softDev/devSiSoft.c b/src/dev/softDev/devSiSoft.c index ea7d0b3af..151776bff 100644 --- a/src/dev/softDev/devSiSoft.c +++ b/src/dev/softDev/devSiSoft.c @@ -64,8 +64,7 @@ struct { read_stringin }; -static long init_record(pstringin) - struct stringinRecord *pstringin; +static long init_record(stringinRecord *pstringin) { /* stringin.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/ @@ -86,8 +85,7 @@ static long init_record(pstringin) return(0); } -static long read_stringin(pstringin) - struct stringinRecord *pstringin; +static long read_stringin(stringinRecord *pstringin) { long status; diff --git a/src/dev/softDev/devSoSoft.c b/src/dev/softDev/devSoSoft.c index 6c466d64e..4fafafad7 100644 --- a/src/dev/softDev/devSoSoft.c +++ b/src/dev/softDev/devSoSoft.c @@ -63,8 +63,7 @@ struct { write_stringout }; -static long init_record(pstringout) -struct stringoutRecord *pstringout; +static long init_record(stringoutRecord *pstringout) { return 0; } /* end init_record() */ diff --git a/src/dev/softDev/devWfSoft.c b/src/dev/softDev/devWfSoft.c index 49b04a4e9..65d6b083f 100644 --- a/src/dev/softDev/devWfSoft.c +++ b/src/dev/softDev/devWfSoft.c @@ -69,8 +69,7 @@ struct { read_wf}; -static long init_record(pwf) - struct waveformRecord *pwf; +static long init_record(waveformRecord *pwf) { /* wf.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/ @@ -90,8 +89,7 @@ static long init_record(pwf) return(0); } -static long read_wf(pwf) - struct waveformRecord *pwf; +static long read_wf(waveformRecord *pwf) { long status,nRequest;