changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: disk/mkfs: remove unused cputype variable (thanks kvik)

changeset 6883: 5880f6224d4f
parent 6882: ffcd900c9443
child 6884: be96aba40574
author: cinap_lenrek@felloff.net
date: Mon, 12 Nov 2018 16:54:59 +0100
files: sys/src/cmd/disk/mkfs.c
description: disk/mkfs: remove unused cputype variable (thanks kvik)
     1.1--- a/sys/src/cmd/disk/mkfs.c
     1.2+++ b/sys/src/cmd/disk/mkfs.c
     1.3@@ -30,7 +30,6 @@ uchar	boutbuf[2*LEN];
     1.4 char	newfile[LEN];
     1.5 char	oldfile[LEN];
     1.6 char	*proto;
     1.7-char	*cputype;
     1.8 char	*oldroot;
     1.9 char	*newroot;
    1.10 char	*prog = "mkfs";
    1.11@@ -115,10 +114,6 @@ main(int argc, char **argv)
    1.12 	zbuf = malloc(buflen);
    1.13 	memset(zbuf, 0, buflen);
    1.14 
    1.15-	cputype = getenv("cputype");
    1.16-	if(cputype == 0)
    1.17-		cputype = "386";
    1.18-
    1.19 	errs = 0;
    1.20 	for(i = 0; i < argc; i++){
    1.21 		proto = argv[i];