summaryrefslogtreecommitdiff
path: root/src/systty.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/systty.h')
-rw-r--r--src/systty.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systty.h b/src/systty.h
index a7c682cf7c1..897a3c28e93 100644
--- a/src/systty.h
+++ b/src/systty.h
@@ -218,7 +218,7 @@ static struct sensemode {
#ifdef HAVE_TERMIOS
#define EMACS_GET_TTY_PGRP(fd, pgid) (*(pgid) = tcgetpgrp ((fd)))
-#define EMACS_SET_TTY_PGRP(fd, pgid) (*(pgid) = tcsetpgrp ((fd), *(pgid)))
+#define EMACS_SET_TTY_PGRP(fd, pgid) (tcsetpgrp ((fd), *(pgid)))
#else
#ifdef TIOCSPGRP