dtterm: remove register keyword
authorJon Trulson <jon@radscan.com>
Wed, 27 Jun 2018 23:52:01 +0000 (17:52 -0600)
committerJon Trulson <jon@radscan.com>
Thu, 28 Jun 2018 04:20:34 +0000 (22:20 -0600)
cde/programs/dtterm/DtTermMain.c
cde/programs/dtterm/DtTermSyntax.c
cde/programs/dtterm/tests/shared/p2c.h

index d3b02c7d1204153839c86221b066491c05f6e6e0..5210bff33c0cf883310891f43ee4b62aee4f9d4e 100644 (file)
@@ -667,7 +667,7 @@ AddMenubarToggle
 static void
 CloneCallback(Widget wid, XtPointer client_data, XtPointer call_data)
 {
-    register DtTermViewWidget w = (DtTermViewWidget) wid;
+    DtTermViewWidget w = (DtTermViewWidget) wid;
     DtTermViewCallbackStruct *termCB = (DtTermViewCallbackStruct *) call_data;
 
     Widget parent = XtParent((Widget) w);
@@ -1104,7 +1104,7 @@ base_name(
      char *name
 )
 {
-       register char *cp;
+       char *cp;
 
        cp = strrchr(name, '/');
        return(cp ? cp + 1 : name);
index fe8259b107b6c74a7806253a6a95148cbc01c973..3a134ac90c5bc649450968b2696b53e0a914e708 100644 (file)
@@ -92,9 +92,9 @@ static char *message_defaults[] = {
 
 static void GetUsage(void)
 {
-    register struct _options *optPtr;
-    register int i;
-    register char *c;
+    struct _options *optPtr;
+    int i;
+    char *c;
     char *c2;
     int num_messages;
     optHead = (struct _options *) 0;
@@ -224,7 +224,7 @@ static void GetUsage(void)
 
 void Syntax(char *programName, char *badOption)
 {
-    register struct _options    *optPtr;
+    struct _options    *optPtr;
     int                          col;
     int                          cols;
     char                        *c;
@@ -284,7 +284,7 @@ void Syntax(char *programName, char *badOption)
 
 void Help(char *programName)
 {
-    register struct _options     *optPtr;
+    struct _options     *optPtr;
     int                           width = 0;
 
     /* 
index cf05711943dcd14240fba8f7313b81d28bcbc1d6..5a4eb7fea1c216a206f8c0de47f988dabb5cb1fe 100644 (file)
@@ -184,7 +184,7 @@ typedef char *Anyptr;
 # define Inline
 #endif
 
-#define Register    register  /* Register variables */
+#define Register    /* Register variables (nope) */
 #define Char        char      /* Characters (not bytes) */
 
 #ifndef Static