Deleted Added
full compact
pat_rep.c (208484) pat_rep.c (222177)
1/*-
2 * Copyright (c) 1992 Keith Muller.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Keith Muller of the University of California, San Diego.
8 *

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

32 */
33
34#ifndef lint
35#if 0
36static char sccsid[] = "@(#)pat_rep.c 8.2 (Berkeley) 4/18/94";
37#endif
38#endif /* not lint */
39#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1992 Keith Muller.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Keith Muller of the University of California, San Diego.
8 *

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

32 */
33
34#ifndef lint
35#if 0
36static char sccsid[] = "@(#)pat_rep.c 8.2 (Berkeley) 4/18/94";
37#endif
38#endif /* not lint */
39#include <sys/cdefs.h>
40__FBSDID("$FreeBSD: head/bin/pax/pat_rep.c 208484 2010-05-24 06:33:14Z uqs $");
40__FBSDID("$FreeBSD: head/bin/pax/pat_rep.c 222177 2011-05-22 14:03:38Z uqs $");
41
42#include <sys/types.h>
43#include <sys/stat.h>
44#include <stdio.h>
45#include <string.h>
46#include <unistd.h>
47#include <stdlib.h>
48#include <errno.h>

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

392 ppt = &(pt->fow);
393 pt = pt->fow;
394 }
395
396 if (pt == NULL) {
397 /*
398 * should never happen....
399 */
41
42#include <sys/types.h>
43#include <sys/stat.h>
44#include <stdio.h>
45#include <string.h>
46#include <unistd.h>
47#include <stdlib.h>
48#include <errno.h>

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

392 ppt = &(pt->fow);
393 pt = pt->fow;
394 }
395
396 if (pt == NULL) {
397 /*
398 * should never happen....
399 */
400 paxwarn(1, "Pattern list inconsistant");
400 paxwarn(1, "Pattern list inconsistent");
401 return(-1);
402 }
403 *ppt = pt->fow;
404 free(pt);
405 arcn->pat = NULL;
406 return(0);
407}
408

--- 722 unchanged lines hidden ---
401 return(-1);
402 }
403 *ppt = pt->fow;
404 free(pt);
405 arcn->pat = NULL;
406 return(0);
407}
408

--- 722 unchanged lines hidden ---