Deleted Added
full compact
dialog_util.c (274116) dialog_util.c (274121)
1/*-
2 * Copyright (c) 2013-2014 Devin Teske <dteske@FreeBSD.org>
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

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

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
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2013-2014 Devin Teske <dteske@FreeBSD.org>
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

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

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
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/lib/libdpv/dialog_util.c 274116 2014-11-04 23:46:01Z dteske $");
28__FBSDID("$FreeBSD: head/lib/libdpv/dialog_util.c 274121 2014-11-05 01:57:32Z dteske $");
29
30#include <sys/ioctl.h>
31
32#include <ctype.h>
33#include <err.h>
34#include <fcntl.h>
35#include <limits.h>
36#include <spawn.h>

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

57uint8_t use_color = 1;
58char dialog[PATH_MAX] = DIALOG;
59
60/* [X]dialog(1) functionality */
61char *title = NULL;
62char *backtitle = NULL;
63int dheight = 0;
64int dwidth = 0;
29
30#include <sys/ioctl.h>
31
32#include <ctype.h>
33#include <err.h>
34#include <fcntl.h>
35#include <limits.h>
36#include <spawn.h>

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

57uint8_t use_color = 1;
58char dialog[PATH_MAX] = DIALOG;
59
60/* [X]dialog(1) functionality */
61char *title = NULL;
62char *backtitle = NULL;
63int dheight = 0;
64int dwidth = 0;
65char *dargv[64] = { NULL };
65static char *dargv[64] = { NULL };
66
67/* TTY/Screen characteristics */
68static struct winsize *maxsize = NULL;
69
70/* Function prototypes */
71static void tty_maxsize_update(void);
72static void x11_maxsize_update(void);
73

--- 560 unchanged lines hidden ---
66
67/* TTY/Screen characteristics */
68static struct winsize *maxsize = NULL;
69
70/* Function prototypes */
71static void tty_maxsize_update(void);
72static void x11_maxsize_update(void);
73

--- 560 unchanged lines hidden ---