aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorPaul Eggert2011-11-25 23:42:44 -0800
committerPaul Eggert2011-11-25 23:42:44 -0800
commit5b76caa476d552e204adc3c1bf4af8e401ec5d42 (patch)
treef1ea7b28bd616eb17f6714af16a81429800479a5 /src/process.c
parent78adbf9c3f71e4387d4b01697b76999c883735c4 (diff)
downloademacs-5b76caa476d552e204adc3c1bf4af8e401ec5d42.tar.gz
emacs-5b76caa476d552e204adc3c1bf4af8e401ec5d42.zip
Rename locals to avoid shadowing.
* fileio.c (Finsert_file_contents): Rename inner 'gcpro1' to 'inner_gcpro1' to avoid shadowing. * process.c (wait_reading_process_output): Rename inner 'proc' to 'p' to avoid shadowing. Indent for consistency with usual Emacs style.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c31
1 files changed, 17 insertions, 14 deletions
diff --git a/src/process.c b/src/process.c
index 892bd9820bf..ba3eeb81614 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4630,26 +4630,29 @@ wait_reading_process_output (int time_limit, int microsecs, int read_kbd,
4630 the gnutls library -- 2.12.14 has been confirmed 4630 the gnutls library -- 2.12.14 has been confirmed
4631 to need it. See 4631 to need it. See
4632 http://comments.gmane.org/gmane.emacs.devel/145074 */ 4632 http://comments.gmane.org/gmane.emacs.devel/145074 */
4633 struct Lisp_Process *proc;
4634 for (channel = 0; channel < MAXDESC; ++channel) 4633 for (channel = 0; channel < MAXDESC; ++channel)
4635 { 4634 if (! NILP (chan_process[channel]))
4636 if (! NILP (chan_process[channel]) && 4635 {
4637 (proc = XPROCESS (chan_process[channel])) != NULL && 4636 struct Lisp_Process *p =
4638 proc->gnutls_p && 4637 XPROCESS (chan_process[channel]);
4639 proc->infd && 4638 if (p && p->gnutls_p && p->infd
4640 emacs_gnutls_record_check_pending (proc->gnutls_state) > 0) 4639 && ((emacs_gnutls_record_check_pending
4641 { 4640 (p->gnutls_state))
4642 nfds++; 4641 > 0))
4643 FD_SET (proc->infd, &Available); 4642 {
4644 } 4643 nfds++;
4645 } 4644 FD_SET (p->infd, &Available);
4645 }
4646 }
4646 } 4647 }
4647 else 4648 else
4648 { 4649 {
4649 /* Check this specific channel. */ 4650 /* Check this specific channel. */
4650 if (wait_proc->gnutls_p && /* Check for valid process. */ 4651 if (wait_proc->gnutls_p /* Check for valid process. */
4651 /* Do we have pending data? */ 4652 /* Do we have pending data? */
4652 emacs_gnutls_record_check_pending (wait_proc->gnutls_state) > 0) 4653 && ((emacs_gnutls_record_check_pending
4654 (wait_proc->gnutls_state))
4655 > 0))
4653 { 4656 {
4654 nfds = 1; 4657 nfds = 1;
4655 /* Set to Available. */ 4658 /* Set to Available. */