Unbreak build on NetBSD, C says that stdio is not a modificable lvalue.

Infact, the LHS is not needed at all.
This commit is contained in:
joerg 2005-11-08 14:42:10 +00:00
parent f875afa92e
commit ca9979bfc9
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.8 2005/11/08 13:20:45 joerg Exp $
$NetBSD: distinfo,v 1.9 2005/11/08 14:42:10 joerg Exp $
SHA1 (dialog-1.0-20050911.tgz) = 96c11fb4a98d5f9f074d8339fe2bad501e0f5786
RMD160 (dialog-1.0-20050911.tgz) = 9fe5698fd2dda5cd2391302d39b081abf6f86ab8
Size (dialog-1.0-20050911.tgz) = 307686 bytes
SHA1 (patch-aa) = f1603548145704ea9ef4ff539ce6ec650f1fd8d3
SHA1 (patch-aa) = b732f91c113e45b7baab2f557f2719154a5ed0a1

View file

@ -1,4 +1,4 @@
$NetBSD: patch-aa,v 1.11 2005/11/08 13:20:45 joerg Exp $
$NetBSD: patch-aa,v 1.12 2005/11/08 14:42:10 joerg Exp $
--- util.c.orig 2005-11-08 13:00:19.000000000 +0000
+++ util.c
@ -7,7 +7,7 @@ $NetBSD: patch-aa,v 1.11 2005/11/08 13:20:45 joerg Exp $
&& (fd2 = dup(fileno(stdin))) >= 0) {
dialog_state.pipe_input = fdopen(fd2, "r");
- *stdin = *freopen(device, "r", stdin);
+ stdin = freopen(device, "r", stdin);
+ freopen(device, "r", stdin);
if (fileno(stdin) != 0) /* some functions may read fd #0 */
(void) dup2(fileno(stdin), 0);
}