Deleted Added
full compact
fat.c (241806) fat.c (241807)
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: fat.c,v 1.18 2006/06/05 16:51:18 christos 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: fat.c,v 1.18 2006/06/05 16:51:18 christos Exp $");
30static const char rcsid[] =
31 "$FreeBSD: head/sbin/fsck_msdosfs/fat.c 241806 2012-10-21 12:01:11Z uqs $";
31 "$FreeBSD: head/sbin/fsck_msdosfs/fat.c 241807 2012-10-21 12:01:19Z uqs $";
32#endif /* not lint */
33
34#include <stdlib.h>
35#include <string.h>
36#include <ctype.h>
37#include <stdio.h>
38#include <unistd.h>
39

--- 275 unchanged lines hidden (view full) ---

315 } else
316 *fp = fat;
317 return ret;
318}
319
320/*
321 * Get type of reserved cluster
322 */
32#endif /* not lint */
33
34#include <stdlib.h>
35#include <string.h>
36#include <ctype.h>
37#include <stdio.h>
38#include <unistd.h>
39

--- 275 unchanged lines hidden (view full) ---

315 } else
316 *fp = fat;
317 return ret;
318}
319
320/*
321 * Get type of reserved cluster
322 */
323char *
323const char *
324rsrvdcltype(cl_t cl)
325{
326 if (cl == CLUST_FREE)
327 return "free";
328 if (cl < CLUST_BAD)
329 return "reserved";
330 if (cl > CLUST_BAD)
331 return "as EOF";

--- 362 unchanged lines hidden ---
324rsrvdcltype(cl_t cl)
325{
326 if (cl == CLUST_FREE)
327 return "free";
328 if (cl < CLUST_BAD)
329 return "reserved";
330 if (cl > CLUST_BAD)
331 return "as EOF";

--- 362 unchanged lines hidden ---