Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a2825280
Commit
a2825280
authored
Dec 11, 1997
by
Karl Heuer
Browse files
(sys_signal): Add two casts.
parent
eead07d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/sysdep.c
src/sysdep.c
+2
-2
No files found.
src/sysdep.c
View file @
a2825280
...
...
@@ -2740,7 +2740,7 @@ signal_handler_t
sys_signal (int signal_number, signal_handler_t action)
{
sigemptyset (&new_action.sa_mask);
new_action.sa_handler = action;
new_action.sa_handler =
(void (*)(int))
action;
#ifdef SA_RESTART
/* Emacs mostly works better with restartable system services. If this
* flag exists, we probably want to turn it on here.
...
...
@@ -2750,7 +2750,7 @@ sys_signal (int signal_number, signal_handler_t action)
new_action.sa_flags = 0;
#endif
sigaction (signal_number, &new_action, &old_action);
return (old_action.sa_handler);
return (
(void (*)(int))
old_action.sa_handler);
}
#ifndef __GNUC__
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment