[nas] [patch] more () -> (void) conversion
Stefan Huehner
stefan at huehner.org
Tue Aug 29 07:23:47 MDT 2006
Hi,
attached patch converts more function declarations and their prototypes without parameters from () to the (void) form.
Regards,
Stefan
-------------- next part --------------
diff -u server/dia/dispatch.c server/dia/dispatch.c
--- server/dia/dispatch.c (working copy)
+++ server/dia/dispatch.c (working copy)
@@ -197,7 +197,7 @@
}
void
-AuInitProcVectors()
+AuInitProcVectors(void)
{
int i;
@@ -284,7 +284,7 @@
* and destroy their resources.
*********************/
void
-CloseDownRetainedResources()
+CloseDownRetainedResources(void)
{
register int i;
register ClientPtr client;
diff -u server/dia/dixutils.c (working copy) server/dia/dixutils.c
--- server/dia/dixutils.c (working copy)
+++ server/dia/dixutils.c (working copy)
@@ -75,7 +75,7 @@
/* ARGSUSED */
void
-ProcessWorkQueue()
+ProcessWorkQueue(void)
{
WorkQueuePtr q, n, p;
--- server/os/connection.c (revision 224)
+++ server/os/connection.c (working copy)
@@ -829,7 +829,7 @@
#ifdef SVR4
static int
-open_att_svr4_local()
+open_att_svr4_local(void)
{
int fd[2], tfd;
char path[64];
@@ -1051,7 +1051,7 @@
*****************/
void
-CreateWellKnownSockets()
+CreateWellKnownSockets(void)
{
int request, i;
#ifdef SVR4
@@ -2138,7 +2138,7 @@
static void AmoebaTCPConnectorThread();
void
-CreateWellKnownSockets()
+CreateWellKnownSockets(void)
{
char host[100];
char *getenv();
--- server/os/access.c (revision 224)
+++ server/os/access.c (working copy)
@@ -212,8 +215,8 @@
* called when authorization is not enabled to add the
* local host to the access list
*/
-
-EnableLocalHost()
+void
+EnableLocalHost(void)
{
if (!UsingXdmcp) {
LocalHostEnabled = TRUE;
@@ -225,8 +228,8 @@
* called at init time when XDMCP will be used; xdmcp always
* adds local hosts manually when needed
*/
-
-AccessUsingXdmcp()
+void
+AccessUsingXdmcp(void)
{
UsingXdmcp = FALSE;
LocalHostEnabled = FALSE;
--- server/os/daemon.c (revision 224)
+++ server/os/daemon.c (working copy)
@@ -62,7 +62,7 @@
#include "os.h"
void
-osBecomeOrphan()
+osBecomeOrphan(void)
{
Pid_t child_id;
int stat;
@@ -111,7 +111,7 @@
}
void
-osBecomeDaemon()
+osBecomeDaemon(void)
{
register int i;
@@ -167,7 +167,7 @@
#endif
int
-osStorePid()
+osStorePid(void)
{
#if defined(linux) || defined(CSRG_BASED) || defined(__QNXNTO__)
int oldpid;
--- server/os/osinit.c (revision 224)
+++ server/os/osinit.c (working copy)
@@ -83,7 +83,7 @@
int limitNoFile = -1;
#endif
-OsInit()
+void OsInit(void)
{
#ifndef AMOEBA
static Bool been_here = FALSE;
--- server/dia/auutil.c (revision 224)
+++ server/dia/auutil.c (working copy)
@@ -151,7 +151,7 @@
}
void
-AuCreateResourceTypes()
+AuCreateResourceTypes(void)
{
auComponentType = CreateNewResourceType(AuFreeComponent);
auFlowType = CreateNewResourceType(freeFlow);
--- server/dia/globals.c (revision 224)
+++ server/dia/globals.c (working copy)
@@ -76,7 +76,7 @@
/* Initialize the globals, called from main */
void
-diaInitGlobals()
+diaInitGlobals(void)
{
clients = (ClientPtr *) 0;
serverClient = (ClientPtr) NULL;
--- server/dia/main.c (revision 224)
+++ server/dia/main.c (working copy)
@@ -65,10 +65,10 @@
#include "nasconf.h"
#include "release.h"
-extern void OsInit(), InitClient(), ResetWellKnownSockets(),
+extern void OsInit(void), InitClient(), ResetWellKnownSockets(),
Dispatch(), FreeAllResources();
extern int AuInitSetupReply();
-extern void AuInitProcVectors();
+extern void AuInitProcVectors(void);
extern Bool InitClientResources();
static char *AuServerName(void);
--- server/dia/audispatch.c (revision 224)
+++ server/dia/audispatch.c (working copy)
@@ -41,7 +41,7 @@
AuProcessStateChanges(), AuProcessUnclockedFlows(),
AuSetInputGainAndLineMode(), AuSetOutputGainAndMode(),
AuSetFeedbackGain(),
-CloseDownRetainedResources(), WriteEventsToClient(), WriteToClient();
+CloseDownRetainedResources(void), WriteEventsToClient(), WriteToClient();
extern AuBool AuChangeElementState(), AuInitDevice(), AuMatchAttributes();
extern int AuCompileFlow(), AuSetComponentAttributes();
extern void AuGetOutputGainAndMode(), AuGetFeedbackGain(),
--- server/dia/nasconf.c (revision 224)
+++ server/dia/nasconf.c (working copy)
@@ -15,7 +15,7 @@
/* Initialize the global config items */
void
-diaInitGlobalConfig()
+diaInitGlobalConfig(void)
{
/* init all the default values */
NasConfig.DoDebug = FALSE;
--- server/dia/auevents.c (revision 224)
+++ server/dia/auevents.c (working copy)
@@ -120,7 +120,7 @@
}
void
-ProcessAudioEvents()
+ProcessAudioEvents(void)
{
AuBlock l;
EventQueuePtr p, next;
--- server/dia/auconfig.c (revision 224)
+++ server/dia/auconfig.c (working copy)
@@ -28,7 +28,7 @@
#include "au.h"
extern AuBool AuInitPhysicalDevices();
-extern void AuCreateResourceTypes();
+extern void AuCreateResourceTypes(void);
ComponentPtr *auServerDevices, /* array of devices */
*auServerBuckets, /* array of server owned
More information about the Nas
mailing list