From: Peter Howkins Date: Thu, 28 Jun 2018 03:01:19 +0000 (+0100) Subject: libDtTerm: Change to ANSI function definition X-Git-Tag: 2.3.0a~365 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6b09b193517c4cb1bd412e951e188555a2f4f194;p=oweals%2Fcde.git libDtTerm: Change to ANSI function definition --- diff --git a/cde/lib/DtTerm/TermPrim/TermPrim.c b/cde/lib/DtTerm/TermPrim/TermPrim.c index 16e0b172..b1398709 100644 --- a/cde/lib/DtTerm/TermPrim/TermPrim.c +++ b/cde/lib/DtTerm/TermPrim/TermPrim.c @@ -3716,7 +3716,7 @@ ManagerConstraintInitializePatch(Widget request, Widget new_w, ArgList args, } void -DtTermInitialize() +DtTermInitialize(void) { XmManagerClassRec *mw = (XmManagerClassRec *) xmManagerWidgetClass; CoreClassRec *core = (CoreClassRec *) coreWidgetClass; diff --git a/cde/lib/DtTerm/TermPrim/TermPrimGetPty-svr4.c b/cde/lib/DtTerm/TermPrim/TermPrimGetPty-svr4.c index 5a00d59d..fbe2f3dc 100644 --- a/cde/lib/DtTerm/TermPrim/TermPrimGetPty-svr4.c +++ b/cde/lib/DtTerm/TermPrim/TermPrimGetPty-svr4.c @@ -320,7 +320,7 @@ _DtTermPrimReleasePty(char *ptySlave) } void -_DtTermPrimPtyCleanup() +_DtTermPrimPtyCleanup(void) { /* dummy function for STREAMS... */ return; diff --git a/cde/lib/DtTerm/TermPrim/TermPrimParser.c b/cde/lib/DtTerm/TermPrim/TermPrimParser.c index 0e0fcc9a..667e2df5 100644 --- a/cde/lib/DtTerm/TermPrim/TermPrimParser.c +++ b/cde/lib/DtTerm/TermPrim/TermPrimParser.c @@ -59,7 +59,7 @@ static char rcs_id[] = "$TOG: TermPrimParser.c /main/2 1999/10/15 12:23:41 mgree #pragma BBA_IGNORE #endif /*BBA*/ static void -ParseTrap() +ParseTrap(void) { static int count = 0; diff --git a/cde/lib/DtTerm/TermPrim/TermPrimSetPty.c b/cde/lib/DtTerm/TermPrim/TermPrimSetPty.c index e59e3821..02448bdd 100644 --- a/cde/lib/DtTerm/TermPrim/TermPrimSetPty.c +++ b/cde/lib/DtTerm/TermPrim/TermPrimSetPty.c @@ -340,8 +340,7 @@ void _DtTermPrimPtySendBreak(int pty, int msec) #elif defined(USE_TCSENDBREAK) (void) tcsendbreak(pty, 0); #else /* none specified... */ - There is no RS232 break code specified for this architecture. See - TermPrimOSDepI.h for a list of #defines... + #error "There is no RS232 break code specified for this architecture. See TermPrimOSDepI.h for a list of #defines..." #endif /* rs232 break definition... */ } @@ -368,7 +367,7 @@ static eucioc_t refWp; #endif /* (USE_CSWIDTH) */ void -_DtTermPrimPtyGetDefaultModes() +_DtTermPrimPtyGetDefaultModes(void) { int tty = -1; int refTty = -1; diff --git a/cde/lib/DtTerm/TermPrim/TermPrimSetUtmp.c b/cde/lib/DtTerm/TermPrim/TermPrimSetUtmp.c index b37d7e8a..96ec4811 100644 --- a/cde/lib/DtTerm/TermPrim/TermPrimSetUtmp.c +++ b/cde/lib/DtTerm/TermPrim/TermPrimSetUtmp.c @@ -562,7 +562,7 @@ _DtTermPrimUtmpEntryDestroy(Widget w, char *utmpLine) } void -_DtTermPrimUtmpCleanup() +_DtTermPrimUtmpCleanup(void) { DebugF('s', 10, fprintf(stderr, ">>_DtTermPrimUtmpCleanup() starting\n")); _DtTermProcessLock(); diff --git a/cde/lib/DtTerm/TermPrim/TermPrimUtil.c b/cde/lib/DtTerm/TermPrim/TermPrimUtil.c index 4ab57812..66bdc12e 100644 --- a/cde/lib/DtTerm/TermPrim/TermPrimUtil.c +++ b/cde/lib/DtTerm/TermPrim/TermPrimUtil.c @@ -559,7 +559,7 @@ static gid_t gid_user; static gid_t gid_root; static void -suidInit() +suidInit(void) { _DtTermProcessLock(); if (first) { @@ -575,7 +575,7 @@ suidInit() } void -_DtTermPrimRemoveSuidRoot() +_DtTermPrimRemoveSuidRoot(void) { (void) suidInit(); #if defined(HAS_SETRESUID) diff --git a/cde/lib/DtTerm/TermView/TermViewGlobalDialog.c b/cde/lib/DtTerm/TermView/TermViewGlobalDialog.c index d1b2208b..5f8766f1 100644 --- a/cde/lib/DtTerm/TermView/TermViewGlobalDialog.c +++ b/cde/lib/DtTerm/TermView/TermViewGlobalDialog.c @@ -65,9 +65,7 @@ static void HelpTerminalOptionsCallback(Widget w, XtPointer client_data, _DtTermViewLineupList * -_DtTermViewLineupListCreate -( -) +_DtTermViewLineupListCreate(void) { _DtTermViewLineupList *list; diff --git a/cde/lib/DtTerm/util/lineToData.c b/cde/lib/DtTerm/util/lineToData.c index 8a42c7e4..6aba35e8 100644 --- a/cde/lib/DtTerm/util/lineToData.c +++ b/cde/lib/DtTerm/util/lineToData.c @@ -57,9 +57,7 @@ static void order(char *p1, char *p2, signed char *offset1, signed char *offset2 static char *vis(char val); int -main(argc, argv) -int argc; -char **argv; +main(int argc, char **argv) { char buffer[BUFSIZ]; char *bufPtr;