]> Zhao Yanbai Git Server - minix.git/commitdiff
Updated constant names
authorBen Gras <ben@minix3.org>
Tue, 15 Nov 2005 12:12:00 +0000 (12:12 +0000)
committerBen Gras <ben@minix3.org>
Tue, 15 Nov 2005 12:12:00 +0000 (12:12 +0000)
boot/installboot.c
boot/rawfs.c

index b0ca9a8947ff88b9590d598022cd08bc1e4116cf..4b8ae4a61813c6c61784ee2645e8851c110828cd 100755 (executable)
@@ -367,7 +367,7 @@ int raw_install(char *file, off_t *start, off_t *len, int block_size)
  * Note: *len == 0 when an image is read.  It is set right afterwards.
  */
 {
-       static char buf[MAX_BLOCK_SIZE];        /* Nonvolatile block buffer. */
+       static char buf[_MAX_BLOCK_SIZE];       /* Nonvolatile block buffer. */
        FILE *f;
        off_t sec;
        unsigned long devsize;
@@ -424,7 +424,7 @@ void make_bootable(enum howto how, char *device, char *bootblock,
  * vector are added to the end of the device.
  */
 {
-       char buf[MAX_BLOCK_SIZE + 256], *adrp, *parmp;
+       char buf[_MAX_BLOCK_SIZE + 256], *adrp, *parmp;
        struct fileaddr {
                off_t   address;
                int     count;
@@ -695,7 +695,7 @@ void install_master(char *device, char *masterboot, char **guide)
        FILE *masf;
        unsigned long size;
        struct stat st;
-       static char buf[MAX_BLOCK_SIZE];
+       static char buf[_MAX_BLOCK_SIZE];
 
        /* Open device. */
        if ((rawfd= open(rawdev= device, O_RDWR)) < 0) fatal(device);
index baa720cf762db680416dfc06664ec115fa8d9c63..f90e8e29c72350c6b159b7be73779ae1299f3f11 100755 (executable)
@@ -53,9 +53,9 @@ static struct super_block super;      /* Superblock of file system */
 #endif
 
 static struct inode curfil;            /* Inode of file under examination */
-static char indir[MAX_BLOCK_SIZE];     /* Single indirect block. */
-static char dindir[MAX_BLOCK_SIZE];    /* Double indirect block. */
-static char dirbuf[MAX_BLOCK_SIZE];    /* Scratch/Directory block. */
+static char indir[_MAX_BLOCK_SIZE];    /* Single indirect block. */
+static char dindir[_MAX_BLOCK_SIZE];   /* Double indirect block. */
+static char dirbuf[_MAX_BLOCK_SIZE];   /* Scratch/Directory block. */
 #define scratch dirbuf
 
 static block_t a_indir, a_dindir;      /* Addresses of the indirects. */
@@ -83,8 +83,8 @@ off_t r_super(int *bs)
                if(super.s_magic == SUPER_V2)
                        super.s_block_size = 1024;
                *bs = block_size = super.s_block_size;
-               if(block_size < MIN_BLOCK_SIZE ||
-                       block_size > MAX_BLOCK_SIZE) {
+               if(block_size < _MIN_BLOCK_SIZE ||
+                       block_size > _MAX_BLOCK_SIZE) {
                        return 0;
                }
                nr_dzones= V2_NR_DZONES;