Path: utzoo!attcan!uunet!lll-winken!ames!hc!pprg.unm.edu!unmvax!unm-la!mcormick From: mcormick@unm-la.UUCP (Patrick McCormick) Newsgroups: comp.os.minix Subject: Problems Compiling fsck.c (V1.3) Keywords: Code looks ok, compiler chokes Message-ID: <1115@unm-la.UUCP> Date: 15 Apr 89 20:51:00 GMT Organization: University of New Mexico - Los Alamos Lines: 40 Hi, I'm upgrading from 1.2 to 1.3 and need to get fsck compiled and then I will be able to build the boot disk. But this block of code in fsck keeps choking the compiler up... if (*fmt = 'l' && tolower(*++fmt)) *fmt = toupper(*fmt); mode = isupper(*fmt); switch(*fmt) { case 'c': case 'C':prc(nextarg(char)); /*??? ERROR HERE ???*/ break; case 'b':prn(unsigned, 2, 0); break; -- -- -- The error message is that the line with "case 'C'" has an unknown selector u_. I get about 2 pages more of errors claming that )'s, ;'s and :'s are missing. (The code looks good to me!) I tried retyping the switch in, think that a hidden control char could be in there somewhere but had no luck. Does anyone see something wrong? Any ideas? If possible, could someone send me the version of fsck they are using with V1.3? Thanks, Pat McCormick +--------------------------------------------+ | mcormick@unm-la.LANL.GOV | | lanl!unm-la!mcormick@uunet.uu.net | | --or-- | | uunet.UU.NET!cs.texas.edu!unm-la!mcormick | | uunet.uu.net!lanl!unm-la!mcormick | +--------------------------------------------+