From 82848cf689c24a8bc635449846250ea6edb757c4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 23 Feb 2016 09:42:05 -0800 Subject: Minor cleanups for async DNS etc. * src/frame.h (FRAME_WINDOW_CONFIGURATION_CHANGED): Omit unnecessary parens. * src/gnutls.c (gnutls_try_handshake, emacs_gnutls_deinit) (gnutls_verify_boot): Use bool for boolean. (ATTRIBUTE_FORMAT_PRINTF): Add printf attribute. * src/process.c (free_dns_request, Fmake_network_process): Allocate and free async request control block all in one go. (set_network_socket_coding_system, finish_after_tls_connection) (connect_network_socket): Now static. (conv_numerical_to_lisp): 2nd arg is now int, not unsigned. (Fmake_network_process): Use list1 for brevity. (wait_for_socket_fds): 2nd arg is now const ptr. * src/process.h (struct Lisp_Process.dns_request): Now struct gaicb *, not struct gaicb **, since there was always exactly one. All uses changed. * src/window.c, src/window.h (run_window_configuration_change_hook): Now static. --- src/process.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/process.h') diff --git a/src/process.h b/src/process.h index c7531576915..884c3041f67 100644 --- a/src/process.h +++ b/src/process.h @@ -179,7 +179,7 @@ struct Lisp_Process #ifdef HAVE_GETADDRINFO_A /* Whether the socket is waiting for response from an asynchronous DNS call. */ - struct gaicb **dns_requests; + struct gaicb *dns_request; #endif #ifdef HAVE_GNUTLS -- cgit v1.2.1