-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This was previously defined by the obsolete AC_TYPE_SIGNAL macro, which was removed in 2682e5f. The deprecation text says > Your code may safely assume C89 semantics that RETSIGTYPE is void. So, remove it and just use void instead. Closes curl#6861
- Loading branch information
1 parent
694eab1
commit 812fce9
Showing
19 changed files
with
12 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* | (__| |_| | _ <| |___ | ||
* \___|\___/|_| \_\_____| | ||
* | ||
* Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al. | ||
* Copyright (C) 1998 - 2021, Daniel Stenberg, <[email protected]>, et al. | ||
* | ||
* This software is licensed as described in the file COPYING, which | ||
* you should have received as part of this distribution. The terms | ||
|
@@ -214,24 +214,6 @@ if (sizeof (bool *) ) | |
#include <float.h> | ||
int main() { return 0; } | ||
#endif | ||
#ifdef RETSIGTYPE_TEST | ||
#include <sys/types.h> | ||
#include <signal.h> | ||
#ifdef signal | ||
# undef signal | ||
#endif | ||
#ifdef __cplusplus | ||
extern "C" void (*signal (int, void (*)(int)))(int); | ||
#else | ||
void (*signal ()) (); | ||
#endif | ||
|
||
int | ||
main () | ||
{ | ||
return 0; | ||
} | ||
#endif | ||
#ifdef HAVE_INET_NTOA_R_DECL | ||
#include <arpa/inet.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ | |
# | (__| |_| | _ <| |___ | ||
# \___|\___/|_| \_\_____| | ||
# | ||
# Copyright (C) 2004 - 2015, Guenter Knauf | ||
# Copyright (C) 2001 - 2020, Daniel Stenberg, <[email protected]>, et al. | ||
# Copyright (C) 2004 - 2015, 2021, Guenter Knauf | ||
# Copyright (C) 2001 - 2021, Daniel Stenberg, <[email protected]>, et al. | ||
# | ||
# This software is licensed as described in the file COPYING, which | ||
# you should have received as part of this distribution. The terms | ||
|
@@ -599,7 +599,6 @@ endif | |
@echo $(DL)#define HAVE_UTIME 1$(DL) >> $@ | ||
@echo $(DL)#define HAVE_UTIME_H 1$(DL) >> $@ | ||
@echo $(DL)#define HAVE_WRITEV 1$(DL) >> $@ | ||
@echo $(DL)#define RETSIGTYPE void$(DL) >> $@ | ||
@echo $(DL)#define SIZEOF_INT 4$(DL) >> $@ | ||
@echo $(DL)#define SIZEOF_SHORT 2$(DL) >> $@ | ||
@echo $(DL)#define SIZEOF_STRUCT_IN_ADDR 4$(DL) >> $@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* | (__| |_| | _ <| |___ | ||
* \___|\___/|_| \_\_____| | ||
* | ||
* Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al. | ||
* Copyright (C) 1998 - 2021, Daniel Stenberg, <[email protected]>, et al. | ||
* | ||
* This software is licensed as described in the file COPYING, which | ||
* you should have received as part of this distribution. The terms | ||
|
@@ -103,7 +103,6 @@ | |
#define PACKAGE_VERSION "-" | ||
#define CURL_CA_BUNDLE "s:curl-ca-bundle.crt" | ||
|
||
#define RETSIGTYPE void | ||
#define SELECT_TYPE_ARG1 int | ||
#define SELECT_TYPE_ARG234 (fd_set *) | ||
#define SELECT_TYPE_ARG5 (struct timeval *) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* | (__| |_| | _ <| |___ | ||
* \___|\___/|_| \_\_____| | ||
* | ||
* Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al. | ||
* Copyright (C) 1998 - 2021, Daniel Stenberg, <[email protected]>, et al. | ||
* | ||
* This software is licensed as described in the file COPYING, which | ||
* you should have received as part of this distribution. The terms | ||
|
@@ -84,7 +84,6 @@ | |
|
||
#define NEED_MALLOC_H 1 | ||
|
||
#define RETSIGTYPE void | ||
#define SIZEOF_INT 4 | ||
#define SIZEOF_LONG 4 | ||
#define SIZEOF_LONG_DOUBLE 16 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* | (__| |_| | _ <| |___ | ||
* \___|\___/|_| \_\_____| | ||
* | ||
* Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al. | ||
* Copyright (C) 1998 - 2021, Daniel Stenberg, <[email protected]>, et al. | ||
* | ||
* This software is licensed as described in the file COPYING, which | ||
* you should have received as part of this distribution. The terms | ||
|
@@ -81,8 +81,6 @@ | |
#define HAVE_IOCTL 1 | ||
#define HAVE_IOCTL_FIONBIO 1 | ||
|
||
#define RETSIGTYPE void | ||
|
||
#define SIZEOF_INT 4 | ||
#define SIZEOF_SHORT 2 | ||
#define SIZEOF_SIZE_T 4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* | (__| |_| | _ <| |___ | ||
* \___|\___/|_| \_\_____| | ||
* | ||
* Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al. | ||
* Copyright (C) 1998 - 2021, Daniel Stenberg, <[email protected]>, et al. | ||
* | ||
* This software is licensed as described in the file COPYING, which | ||
* you should have received as part of this distribution. The terms | ||
|
@@ -350,15 +350,6 @@ typedef int sig_atomic_t; | |
#endif | ||
|
||
|
||
/* | ||
* Default return type for signal handlers. | ||
*/ | ||
|
||
#ifndef RETSIGTYPE | ||
#define RETSIGTYPE void | ||
#endif | ||
|
||
|
||
/* | ||
* Macro used to include code only in debug builds. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* | (__| |_| | _ <| |___ | ||
* \___|\___/|_| \_\_____| | ||
* | ||
* Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al. | ||
* Copyright (C) 1998 - 2021, Daniel Stenberg, <[email protected]>, et al. | ||
* | ||
* This software is licensed as described in the file COPYING, which | ||
* you should have received as part of this distribution. The terms | ||
|
@@ -543,7 +543,7 @@ long timediff(struct timeval newer, struct timeval older) | |
|
||
/* vars used to keep around previous signal handlers */ | ||
|
||
typedef RETSIGTYPE (*SIGHANDLER_T)(int); | ||
typedef void (*SIGHANDLER_T)(int); | ||
|
||
#ifdef SIGHUP | ||
static SIGHANDLER_T old_sighup_handler = SIG_ERR; | ||
|
@@ -591,7 +591,7 @@ HANDLE exit_event = NULL; | |
* The first time this is called it will set got_exit_signal to one and | ||
* store in exit_signal the signal that triggered its execution. | ||
*/ | ||
static RETSIGTYPE exit_signal_handler(int signum) | ||
static void exit_signal_handler(int signum) | ||
{ | ||
int old_errno = errno; | ||
logmsg("exit_signal_handler: %d", signum); | ||
|