check.c (203874) | check.c (209364) |
---|---|
1/* 2 * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank 3 * Copyright (c) 1995 Martin Husemann 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26 27#include <sys/cdefs.h> 28#ifndef lint 29__RCSID("$NetBSD: check.c,v 1.10 2000/04/25 23:02:51 jdolecek Exp $"); 30static const char rcsid[] = | 1/* 2 * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank 3 * Copyright (c) 1995 Martin Husemann 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26 27#include <sys/cdefs.h> 28#ifndef lint 29__RCSID("$NetBSD: check.c,v 1.10 2000/04/25 23:02:51 jdolecek Exp $"); 30static const char rcsid[] = |
31 "$FreeBSD: head/sbin/fsck_msdosfs/check.c 203874 2010-02-14 12:31:28Z kib $"; | 31 "$FreeBSD: head/sbin/fsck_msdosfs/check.c 209364 2010-06-20 09:40:54Z brian $"; |
32#endif /* not lint */ 33 34#include <stdlib.h> 35#include <string.h> 36#include <stdio.h> 37#include <unistd.h> 38#include <fcntl.h> 39 --- 53 unchanged lines hidden (view full) --- 93 94 mod |= readfat(dosfs, &boot, boot.ValidFat >= 0 ? boot.ValidFat : 0, &fat); 95 if (mod & FSFATAL) { 96 close(dosfs); 97 return 8; 98 } 99 100 if (boot.ValidFat < 0) | 32#endif /* not lint */ 33 34#include <stdlib.h> 35#include <string.h> 36#include <stdio.h> 37#include <unistd.h> 38#include <fcntl.h> 39 --- 53 unchanged lines hidden (view full) --- 93 94 mod |= readfat(dosfs, &boot, boot.ValidFat >= 0 ? boot.ValidFat : 0, &fat); 95 if (mod & FSFATAL) { 96 close(dosfs); 97 return 8; 98 } 99 100 if (boot.ValidFat < 0) |
101 for (i = 1; i < (int)boot.bpbFATs; i++) { | 101 for (i = 1; i < boot.bpbFATs; i++) { |
102 struct fatEntry *currentFat; 103 104 mod |= readfat(dosfs, &boot, i, ¤tFat); 105 106 if (mod & FSFATAL) 107 goto out; 108 109 mod |= comparefat(&boot, fat, currentFat, i); --- 84 unchanged lines hidden --- | 102 struct fatEntry *currentFat; 103 104 mod |= readfat(dosfs, &boot, i, ¤tFat); 105 106 if (mod & FSFATAL) 107 goto out; 108 109 mod |= comparefat(&boot, fat, currentFat, i); --- 84 unchanged lines hidden --- |