DragonFly BSD
DragonFly submit List (threaded) for 2004-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Steve Mynott <steve.mynott@xxxxxxxxx>
Date: Mon, 27 Dec 2004 22:15:51 +0000

--- 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();



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]