comparison src/emacs.c @ 4710:3a87551bfeb5

Fixes for a number of minor warnings issued by gcc. See xemacs-patches message <870180fe0910051206s13dca5c3j6303732e33c478f5@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Mon, 05 Oct 2009 13:07:34 -0600
parents 80cd90837ac5
children 80d74fed5399
comparison
equal deleted inserted replaced
4709:db7068430402 4710:3a87551bfeb5
1238 retry_close (1); 1238 retry_close (1);
1239 1239
1240 fd = wext_retry_open (term, O_RDWR | OPEN_BINARY, 2); 1240 fd = wext_retry_open (term, O_RDWR | OPEN_BINARY, 2);
1241 /* Conversions are not possible yet, and printing will be in 1241 /* Conversions are not possible yet, and printing will be in
1242 external format, so strerror() and ttyname() are OK. */ 1242 external format, so strerror() and ttyname() are OK. */
1243 if (fd < 0) 1243 if (fd < 0 || dup (0) < 0)
1244 fatal ("%s: %s", WEXTTEXT_TO_8_BIT (term), strerror (errno)); 1244 fatal ("%s: %s", WEXTTEXT_TO_8_BIT (term), strerror (errno));
1245 dup (0);
1246 if (! isatty (0)) 1245 if (! isatty (0))
1247 fatal ("%s: not a tty", WEXTTEXT_TO_8_BIT (term)); 1246 fatal ("%s: not a tty", WEXTTEXT_TO_8_BIT (term));
1248 1247
1249 #if 0 1248 #if 0
1250 stderr_out ("Using %s", ttyname (0)); 1249 stderr_out ("Using %s", ttyname (0));