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

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


--- optr.c.orig 2004-12-18 22:44:47.000000000 +0000
+++ optr.c      2004-12-27 21:57:49.000000000 +0000
@@ -264,9 +264,9 @@
  */

 struct fstab *
-allocfsent(register struct fstab *fs)
+allocfsent(struct fstab *fs)
 {
-       register struct fstab *new;
+       struct fstab *new;

        new = (struct fstab *)malloc(sizeof (*fs));
        if (new == NULL ||
@@ -289,8 +289,8 @@
 void
 getfstab(void)
 {
-       register struct fstab *fs;
-       register struct pfstab *pf;
+       struct fstab *fs;
+       struct pfstab *pf;

        if (setfsent() == 0) {
                msg("Can't open %s for dump table information: %s\n",
@@ -320,8 +320,8 @@
 struct fstab *
 fstabsearch(char *key)
 {
-       register struct pfstab *pf;
-       register struct fstab *fs;
+       struct pfstab *pf;
+       struct fstab *fs;
        char *rn;

        SLIST_FOREACH(pf, &table, pf_list) {
@@ -352,9 +352,9 @@
 void
 lastdump(int arg)
 {
-       register int i;
-       register struct fstab *dt;
-       register struct dumpdates *dtwalk;
+       int i;
+       struct fstab *dt;
+       struct dumpdates *dtwalk;
        char *lastname, *date;
        int dumpme;
        time_t tnow;





More information about the Submit mailing list