Files
pkgsrc-ng/graphics/xgraph/patches/patch-dialog_c
2013-09-26 17:14:40 +02:00

34 lines
894 B
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
$NetBSD: patch-dialog_c,v 1.1 2011/10/03 01:45:22 dholland Exp $
- fix conflict with POSIX getline
--- dialog.c~ 1998-05-22 12:19:06.000000000 +0000
+++ dialog.c
@@ -32,7 +32,7 @@ static short gray_bits[] = {
static void make_msg_box();
static void del_msg_box();
-static int getline();
+static int get_line(char **, char *);
#define D_VPAD 2
@@ -702,7 +702,7 @@ xtb_frame *frame; /* Returned frame */
new_info->lines = (Window *) malloc((unsigned) (sizeof(Window) * E_LINES));
lineptr = text;
- while (getline(&lineptr, line)) {
+ while (get_line(&lineptr, line)) {
if (new_info->num_lines >= new_info->alloc_lines) {
new_info->alloc_lines *= 2;
new_info->lines = (Window *) realloc((char *) new_info->lines,
@@ -800,7 +800,7 @@ char *err_text;
-static int getline(tptr, lptr)
+static int get_line(tptr, lptr)
char **tptr;
char *lptr;
/*