libDtTerm: Change to ANSI function definition
authorPeter Howkins <flibble@users.sf.net>
Thu, 28 Jun 2018 03:01:19 +0000 (04:01 +0100)
committerPeter Howkins <flibble@users.sf.net>
Thu, 28 Jun 2018 03:01:19 +0000 (04:01 +0100)
cde/lib/DtTerm/TermPrim/TermPrim.c
cde/lib/DtTerm/TermPrim/TermPrimGetPty-svr4.c
cde/lib/DtTerm/TermPrim/TermPrimParser.c
cde/lib/DtTerm/TermPrim/TermPrimSetPty.c
cde/lib/DtTerm/TermPrim/TermPrimSetUtmp.c
cde/lib/DtTerm/TermPrim/TermPrimUtil.c
cde/lib/DtTerm/TermView/TermViewGlobalDialog.c
cde/lib/DtTerm/util/lineToData.c

index 16e0b1729d036b8bfaf44cf9d2c9595c76fc3ee0..b1398709155451d1c0c79b486bea27435bb676d9 100644 (file)
@@ -3716,7 +3716,7 @@ ManagerConstraintInitializePatch(Widget request, Widget new_w, ArgList args,
 }
 
 void
-DtTermInitialize()
+DtTermInitialize(void)
 {
     XmManagerClassRec *mw = (XmManagerClassRec *) xmManagerWidgetClass;
     CoreClassRec *core = (CoreClassRec *) coreWidgetClass;
index 5a00d59d2db44963f0977d456c8acc3905959f80..fbe2f3dc2bd3415f74b51c4a308f6e899bbcc2d7 100644 (file)
@@ -320,7 +320,7 @@ _DtTermPrimReleasePty(char *ptySlave)
 }
 
 void
-_DtTermPrimPtyCleanup()
+_DtTermPrimPtyCleanup(void)
 {
     /* dummy function for STREAMS... */
     return;
index 0e0fcc9a76e4111a517d2f361bb4139f247ed01d..667e2df5f7c3a5c84a8785b57a82dd35b7362ed2 100644 (file)
@@ -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;
 
index e59e382135f826391901795964c3aa600fa48544..02448bdd1ea48d24564161c6ee9c3f08e0655f61 100644 (file)
@@ -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;
index b37d7e8a7780f3503a71269f1f19e7b179ef9298..96ec48117e229d709e69e2798db22fd15d89e5b1 100644 (file)
@@ -562,7 +562,7 @@ _DtTermPrimUtmpEntryDestroy(Widget w, char *utmpLine)
 }
 
 void
-_DtTermPrimUtmpCleanup()
+_DtTermPrimUtmpCleanup(void)
 {
     DebugF('s', 10, fprintf(stderr, ">>_DtTermPrimUtmpCleanup() starting\n"));
     _DtTermProcessLock();
index 4ab578129f56c21503766018ca8b7da0957ea622..66bdc12edd43cd1b90a355eee6f29e9479c74f7c 100644 (file)
@@ -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)
index d1b2208b8a6395b4714b1c9b3148103db172a9e8..5f8766f148039bf9bd02083b5ff44ae6d35f3822 100644 (file)
@@ -65,9 +65,7 @@ static void HelpTerminalOptionsCallback(Widget w, XtPointer client_data,
 
 
 _DtTermViewLineupList *
-_DtTermViewLineupListCreate
-(
-)
+_DtTermViewLineupListCreate(void)
 {
     _DtTermViewLineupList *list;
 
index 8a42c7e45dcc2a65e2de490ac3275bae27d704b3..6aba35e87b93851b828be3ae31107858f2103462 100644 (file)
@@ -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;