create netif directory
[unix-history] / usr / src / sys / vm / vm_swap.c
index cac0dc3..d1b3f4a 100644 (file)
@@ -1,4 +1,4 @@
-/*     vm_swap.c       4.10    82/10/21        */
+/*     vm_swap.c       4.12    82/10/22        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -53,7 +53,7 @@ swread(dev, uio)
        struct uio *uio;
 {
 
        struct uio *uio;
 {
 
-       physio(swstrategy, &rswbuf, dev, B_READ, minphys, uio);
+       return (physio(swstrategy, &rswbuf, dev, B_READ, minphys, uio));
 }
 
 swwrite(dev, uio)
 }
 
 swwrite(dev, uio)
@@ -61,7 +61,7 @@ swwrite(dev, uio)
        struct uio *uio;
 {
 
        struct uio *uio;
 {
 
-       physio(swstrategy, &rswbuf, dev, B_WRITE, minphys, uio);
+       return (physio(swstrategy, &rswbuf, dev, B_WRITE, minphys, uio));
 }
 
 /*
 }
 
 /*
@@ -129,13 +129,14 @@ swfree(index)
                         * hunk which needs special treatment anyways.
                         */
                        argdev = swdevt[0].sw_dev;
                         * hunk which needs special treatment anyways.
                         */
                        argdev = swdevt[0].sw_dev;
-                       rminit(argmap, blk/2-CLSIZE, CLSIZE,
+                       rminit(argmap, (long)(blk/2-CLSIZE), (long)CLSIZE,
                            "argmap", ARGMAPSIZE);
                        /*
                         * First of all chunks... initialize the swapmap
                         * the second half of the hunk.
                         */
                            "argmap", ARGMAPSIZE);
                        /*
                         * First of all chunks... initialize the swapmap
                         * the second half of the hunk.
                         */
-                       rminit(swapmap, blk/2, blk/2, "swap", nswapmap);
+                       rminit(swapmap, (long)blk/2, (long)blk/2,
+                           "swap", nswapmap);
                } else
                        rmfree(swapmap, blk, vsbase);
        }
                } else
                        rmfree(swapmap, blk, vsbase);
        }