Deleted Added
full compact
archive_check_magic.c (302408) archive_check_magic.c (315432)
1/*-
2 * Copyright (c) 2003-2010 Tim Kientzle
3 * 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

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

19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#include "archive_platform.h"
1/*-
2 * Copyright (c) 2003-2010 Tim Kientzle
3 * 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

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

19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#include "archive_platform.h"
27__FBSDID("$FreeBSD: stable/11/contrib/libarchive/libarchive/archive_check_magic.c 238856 2012-07-28 06:38:44Z mm $");
27__FBSDID("$FreeBSD: stable/11/contrib/libarchive/libarchive/archive_check_magic.c 315432 2017-03-16 23:07:35Z mm $");
28
29#ifdef HAVE_SYS_TYPES_H
30#include <sys/types.h>
31#endif
32
33#include <stdio.h>
34#ifdef HAVE_STDLIB_H
35#include <stdlib.h>

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

57 written = write(2, m, strlen(m));
58 if (written <= 0)
59 return;
60 m += written;
61 s -= written;
62 }
63}
64
28
29#ifdef HAVE_SYS_TYPES_H
30#include <sys/types.h>
31#endif
32
33#include <stdio.h>
34#ifdef HAVE_STDLIB_H
35#include <stdlib.h>

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

57 written = write(2, m, strlen(m));
58 if (written <= 0)
59 return;
60 m += written;
61 s -= written;
62 }
63}
64
65static void
65static __LA_DEAD void
66diediedie(void)
67{
68#if defined(_WIN32) && !defined(__CYGWIN__) && defined(_DEBUG)
69 /* Cause a breakpoint exception */
70 DebugBreak();
71#endif
72 abort(); /* Terminate the program abnormally. */
73}

--- 102 unchanged lines hidden ---
66diediedie(void)
67{
68#if defined(_WIN32) && !defined(__CYGWIN__) && defined(_DEBUG)
69 /* Cause a breakpoint exception */
70 DebugBreak();
71#endif
72 abort(); /* Terminate the program abnormally. */
73}

--- 102 unchanged lines hidden ---