diff options
author | Daiki Ueno <ueno@gnu.org> | 2021-02-04 08:30:30 +0100 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2021-02-04 09:24:28 +0100 |
commit | 4cea6b2fe9566238949157d821bd31f0e1fd2816 (patch) | |
tree | 9c7f78f1cd5730f22c2131d613e37ab368d49582 /lib/record.c | |
parent | 0295456d9e3149d4b55f013cd681df8b93093d09 (diff) | |
download | gnutls-4cea6b2fe9566238949157d821bd31f0e1fd2816.tar.gz |
handshake: replace RESUME_TRUE and RESUME_FALSE with <stdbool.h>
Having those constants could cause wrong impression that there is a
third possible value.
To reproduce the changes other than lib/gnutls_int.h:
for i in `git ls-files lib`; do
sed -i
-e 's/\(session->internals.\(resumed\|resumable\)\) *\(== *RESUME_FALSE\|!= *RESUME_TRUE\)/!\1/' \
-e 's/\(session->internals.\(resumed\|resumable\)\) *\(== *RESUME_TRUE\|!= *RESUME_FALSE\)/\1/' \
-e 's/RESUME_TRUE/true/' \
-e 's/RESUME_FALSE/false/' \
$i
done
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'lib/record.c')
-rw-r--r-- | lib/record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/record.c b/lib/record.c index 8b0d2bc60e..cd9df80520 100644 --- a/lib/record.c +++ b/lib/record.c @@ -341,7 +341,7 @@ int gnutls_bye(gnutls_session_t session, gnutls_close_request_t how) inline static void session_unresumable(gnutls_session_t session) { - session->internals.resumable = RESUME_FALSE; + session->internals.resumable = false; } /* returns 0 if session is valid |