From 961429491bd21ff05c746c33b9bc92dc3dc86361 Mon Sep 17 00:00:00 2001 From: Simon Schubert Date: Wed, 10 Jan 2007 03:04:28 +0000 Subject: [PATCH] Use SEEK_SET instead of magic constant. --- sys/platform/vkernel/platform/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/platform/vkernel/platform/init.c b/sys/platform/vkernel/platform/init.c index 5cebbe617d..81e23567b6 100644 --- a/sys/platform/vkernel/platform/init.c +++ b/sys/platform/vkernel/platform/init.c @@ -31,7 +31,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/platform/vkernel/platform/init.c,v 1.16 2007/01/09 18:26:59 dillon Exp $ + * $DragonFly: src/sys/platform/vkernel/platform/init.c,v 1.17 2007/01/10 03:04:28 corecode Exp $ */ #include @@ -249,7 +249,7 @@ init_sys_memory(char *imageFile) kprintf("%s: Reserving blocks for memory image\n", imageFile); zmem = malloc(SEG_SIZE); bzero(zmem, SEG_SIZE); - lseek(fd, off, 0); + lseek(fd, off, SEEK_SET); while (off < Maxmem_bytes) { if (write(fd, zmem, SEG_SIZE) != SEG_SIZE) { err(1, "Unable to reserve blocks for memory image"); -- 2.41.0