/usr/src/sbin/dump/dumprmt.c.patch register removal

Steve Mynott steve.mynott at gmail.com
Mon Dec 27 14:16:16 PST 2004


--- dumprmt.c.orig      2004-12-18 22:44:46.000000000 +0000
+++ dumprmt.c   2004-12-27 21:51:36.000000000 +0000
@@ -136,8 +136,8 @@
 void
 rmtgetconn(void)
 {
-       register char *cp;
-       register const char *rmt;
+       char *cp;
+       const char *rmt;
        static struct servent *sp = NULL;
        static struct passwd *pwd = NULL;
        char *tuser;
@@ -203,8 +203,8 @@
 static int
 okname(char *cp0)
 {
-       register char *cp;
-       register int c;
+       char *cp;
+       int c;

        for (cp = cp0; *cp; cp++) {
                c = *cp;
@@ -303,8 +303,8 @@
 struct mtget *
 rmtstatus(void)
 {
-       register int i;
-       register char *cp;
+       int i;
+       char *cp;

        if (rmtstate != TS_OPEN)
                return (NULL);
@@ -337,7 +337,7 @@
 static int
 rmtreply(char *cmd)
 {
-       register char *cp;
+       char *cp;
        char code[30], emsg[BUFSIZ];

        rmtgets(code, sizeof (code));
@@ -376,7 +376,7 @@
 void
 rmtgets(char *line, int len)
 {
-       register char *cp = line;
+       char *cp = line;

        while (len > 1) {
                *cp = rmtgetb();





More information about the Submit mailing list