diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-17 09:36:45 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-17 09:42:11 -0700 |
commit | 187945b6f93f193d7b8a4580191a040186de0f18 (patch) | |
tree | 1a06ad7d31f6c141a2af1acb0584ca6ee7a92d70 | |
parent | a511600f0391e7ecc2fa55e5cda222b5535422e8 (diff) |
unifdef SIGNALRETURNSINT
Signal handlers have been required to have a void return, not int,
since C89. This #define hadn't been set in many years.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | imake.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -347,11 +347,7 @@ void makeit(void); void CleanCppOutput(FILE *tmpfd, const char *tmpfname); boolean isempty(char *line); void writetmpfile(FILE *fd, const char *buf, size_t cnt, const char *fname); -#ifdef SIGNALRETURNSINT -int catch(int sig); -#else void catch(int sig); -#endif void showargs(const char **argv); boolean optional_include(FILE *inFile, const char *defsym, const char *fname); void doit(FILE *outfd, const char *cmd, const char **argv); @@ -461,11 +457,7 @@ wrapup(void) unlink(ImakefileC); } -#ifdef SIGNALRETURNSINT -int -#else void -#endif catch(int sig) { errno = 0; |