diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/process.c b/src/process.c index 93178eb241f..6fc1ef8325f 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -95,7 +95,6 @@ static struct rlimit nofile_limit; | |||
| 95 | #include <flexmember.h> | 95 | #include <flexmember.h> |
| 96 | #include <nproc.h> | 96 | #include <nproc.h> |
| 97 | #include <sig2str.h> | 97 | #include <sig2str.h> |
| 98 | #include <verify.h> | ||
| 99 | 98 | ||
| 100 | #endif /* subprocesses */ | 99 | #endif /* subprocesses */ |
| 101 | 100 | ||
| @@ -922,7 +921,7 @@ make_process (Lisp_Object name) | |||
| 922 | p->open_fd[i] = -1; | 921 | p->open_fd[i] = -1; |
| 923 | 922 | ||
| 924 | #ifdef HAVE_GNUTLS | 923 | #ifdef HAVE_GNUTLS |
| 925 | verify (GNUTLS_STAGE_EMPTY == 0); | 924 | static_assert (GNUTLS_STAGE_EMPTY == 0); |
| 926 | eassert (p->gnutls_initstage == GNUTLS_STAGE_EMPTY); | 925 | eassert (p->gnutls_initstage == GNUTLS_STAGE_EMPTY); |
| 927 | eassert (NILP (p->gnutls_boot_parameters)); | 926 | eassert (NILP (p->gnutls_boot_parameters)); |
| 928 | #endif | 927 | #endif |
| @@ -1913,7 +1912,7 @@ usage: (make-process &rest ARGS) */) | |||
| 1913 | 1912 | ||
| 1914 | #ifdef HAVE_GNUTLS | 1913 | #ifdef HAVE_GNUTLS |
| 1915 | /* AKA GNUTLS_INITSTAGE(proc). */ | 1914 | /* AKA GNUTLS_INITSTAGE(proc). */ |
| 1916 | verify (GNUTLS_STAGE_EMPTY == 0); | 1915 | static_assert (GNUTLS_STAGE_EMPTY == 0); |
| 1917 | eassert (XPROCESS (proc)->gnutls_initstage == GNUTLS_STAGE_EMPTY); | 1916 | eassert (XPROCESS (proc)->gnutls_initstage == GNUTLS_STAGE_EMPTY); |
| 1918 | eassert (NILP (XPROCESS (proc)->gnutls_cred_type)); | 1917 | eassert (NILP (XPROCESS (proc)->gnutls_cred_type)); |
| 1919 | #endif | 1918 | #endif |
| @@ -2143,7 +2142,7 @@ enum | |||
| 2143 | EXEC_MONITOR_OUTPUT | 2142 | EXEC_MONITOR_OUTPUT |
| 2144 | }; | 2143 | }; |
| 2145 | 2144 | ||
| 2146 | verify (PROCESS_OPEN_FDS == EXEC_MONITOR_OUTPUT + 1); | 2145 | static_assert (PROCESS_OPEN_FDS == EXEC_MONITOR_OUTPUT + 1); |
| 2147 | 2146 | ||
| 2148 | static void | 2147 | static void |
| 2149 | create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir) | 2148 | create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir) |
| @@ -3540,9 +3539,9 @@ connect_network_socket (Lisp_Object proc, Lisp_Object addrinfos, | |||
| 3540 | structures, but the standards don't guarantee that, | 3539 | structures, but the standards don't guarantee that, |
| 3541 | so verify it here. */ | 3540 | so verify it here. */ |
| 3542 | struct sockaddr_in6 sa6; | 3541 | struct sockaddr_in6 sa6; |
| 3543 | verify ((offsetof (struct sockaddr_in, sin_port) | 3542 | static_assert ((offsetof (struct sockaddr_in, sin_port) |
| 3544 | == offsetof (struct sockaddr_in6, sin6_port)) | 3543 | == offsetof (struct sockaddr_in6, sin6_port)) |
| 3545 | && sizeof (sa1.sin_port) == sizeof (sa6.sin6_port)); | 3544 | && sizeof (sa1.sin_port) == sizeof (sa6.sin6_port)); |
| 3546 | #endif | 3545 | #endif |
| 3547 | DECLARE_POINTER_ALIAS (psa1, struct sockaddr, &sa1); | 3546 | DECLARE_POINTER_ALIAS (psa1, struct sockaddr, &sa1); |
| 3548 | if (getsockname (s, psa1, &len1) == 0) | 3547 | if (getsockname (s, psa1, &len1) == 0) |