compare.c (121853) | compare.c (122141) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 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 --- 19 unchanged lines hidden (view full) --- 28 */ 29 30#if 0 31#ifndef lint 32static char sccsid[] = "@(#)compare.c 8.1 (Berkeley) 6/6/93"; 33#endif /* not lint */ 34#endif 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 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 --- 19 unchanged lines hidden (view full) --- 28 */ 29 30#if 0 31#ifndef lint 32static char sccsid[] = "@(#)compare.c 8.1 (Berkeley) 6/6/93"; 33#endif /* not lint */ 34#endif 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/usr.sbin/mtree/compare.c 121853 2003-11-01 08:43:54Z bde $"); | 36__FBSDID("$FreeBSD: head/usr.sbin/mtree/compare.c 122141 2003-11-05 22:26:08Z phk $"); |
37 38#include <sys/param.h> 39#include <sys/stat.h> 40#include <sys/time.h> 41 42#include <err.h> 43#include <errno.h> 44#include <fcntl.h> --- 14 unchanged lines hidden (view full) --- 59#include <vis.h> 60 61#include "mtree.h" 62#include "extern.h" 63 64extern int uflag; 65extern int lineno; 66 | 37 38#include <sys/param.h> 39#include <sys/stat.h> 40#include <sys/time.h> 41 42#include <err.h> 43#include <errno.h> 44#include <fcntl.h> --- 14 unchanged lines hidden (view full) --- 59#include <vis.h> 60 61#include "mtree.h" 62#include "extern.h" 63 64extern int uflag; 65extern int lineno; 66 |
67static const char *ftype(u_int); 68 | |
69#define INDENTNAMELEN 8 70#define LABEL \ 71 if (!label++) { \ 72 len = printf("%s changed\n", RP(p)); \ 73 tab = "\t"; \ 74 } 75 76int --- 251 unchanged lines hidden (view full) --- 328 case S_IFSOCK: 329 return ("socket"); 330 default: 331 return ("unknown"); 332 } 333 /* NOTREACHED */ 334} 335 | 67#define INDENTNAMELEN 8 68#define LABEL \ 69 if (!label++) { \ 70 len = printf("%s changed\n", RP(p)); \ 71 tab = "\t"; \ 72 } 73 74int --- 251 unchanged lines hidden (view full) --- 326 case S_IFSOCK: 327 return ("socket"); 328 default: 329 return ("unknown"); 330 } 331 /* NOTREACHED */ 332} 333 |
336static const char * | 334const char * |
337ftype(u_int type) 338{ 339 switch(type) { 340 case F_BLOCK: 341 return ("block"); 342 case F_CHAR: 343 return ("char"); 344 case F_DIR: --- 28 unchanged lines hidden --- | 335ftype(u_int type) 336{ 337 switch(type) { 338 case F_BLOCK: 339 return ("block"); 340 case F_CHAR: 341 return ("char"); 342 case F_DIR: --- 28 unchanged lines hidden --- |