Deleted Added
full compact
subr.c (243730) subr.c (243734)
1/*-
2 * Copyright (c) 2011-2012 Pawel Jakub Dawidek <pawel@dawidek.net>
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2011-2012 Pawel Jakub Dawidek <pawel@dawidek.net>
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $P4: //depot/projects/trustedbsd/openbsm/bin/auditdistd/subr.c#1 $
26 * $P4: //depot/projects/trustedbsd/openbsm/bin/auditdistd/subr.c#3 $
27 */
28
27 */
28
29#include "config.h"
29#include <config/config.h>
30
31#ifdef HAVE_KQUEUE
32#include <sys/types.h>
33#include <sys/event.h>
34#include <sys/time.h>
35#endif
36
37#include <errno.h>

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

43#ifndef HAVE_ARC4RANDOM
44#include <openssl/rand.h>
45#endif
46
47#ifndef HAVE_STRLCAT
48#include <compat/strlcat.h>
49#endif
50
30
31#ifdef HAVE_KQUEUE
32#include <sys/types.h>
33#include <sys/event.h>
34#include <sys/time.h>
35#endif
36
37#include <errno.h>

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

43#ifndef HAVE_ARC4RANDOM
44#include <openssl/rand.h>
45#endif
46
47#ifndef HAVE_STRLCAT
48#include <compat/strlcat.h>
49#endif
50
51#include <pjdlog.h>
52
53#include "auditdistd.h"
51#include "auditdistd.h"
52#include "pjdlog.h"
54#include "subr.h"
55
56int
57vsnprlcat(char *str, size_t size, const char *fmt, va_list ap)
58{
59 size_t len;
60
61 len = strlen(str);

--- 241 unchanged lines hidden ---
53#include "subr.h"
54
55int
56vsnprlcat(char *str, size_t size, const char *fmt, va_list ap)
57{
58 size_t len;
59
60 len = strlen(str);

--- 241 unchanged lines hidden ---