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/optr.c.patch register removal


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

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



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