]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-auth-client: auth-client - Remove ATTR_NULL
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 8 Nov 2023 13:35:38 +0000 (14:35 +0100)
committerStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 17 Jan 2025 17:36:39 +0000 (18:36 +0100)
src/lib-auth-client/auth-client-connection.c
src/lib-auth-client/auth-client-request.c
src/lib-auth-client/auth-client.h

index 6ffc5fbf815ae30fc4826db1442498a15dc96224..966e2824886766d34025a198ac61f6aed8c7b13f 100644 (file)
@@ -408,7 +408,7 @@ auth_client_connection_remove_requests(struct auth_client_connection *conn,
 }
 
 void auth_client_connection_disconnect(struct auth_client_connection *conn,
-                                      const char *reason) ATTR_NULL(2)
+                                      const char *reason)
 {
        if (reason == NULL)
                reason = "Disconnected from auth server, aborting";
index bd454d3624a8ee0b89e6ea81c7d970077efc291c..dc952e0c6e1aa3fa721b84db22c201959278ede5 100644 (file)
@@ -218,7 +218,7 @@ auth_client_request_new(struct auth_client *client,
        return request;
 }
 
-static void ATTR_NULL(3, 4)
+static void
 call_callback(struct auth_client_request *request,
              enum auth_request_status status,
              const char *data_base64,
index c625577c37b7beafabcf04e69c1c847041bae9d3..aced41e4b28c880d2e2dff84f0c94c7138fcee6a 100644 (file)
@@ -90,7 +90,7 @@ void auth_client_set_connect_timeout(struct auth_client *client,
                                     unsigned int msecs);
 void auth_client_set_connect_notify(struct auth_client *client,
                                    auth_connect_notify_callback_t *callback,
-                                   void *context) ATTR_NULL(2, 3);
+                                   void *context);
 const struct auth_mech_desc *
 auth_client_get_available_mechs(struct auth_client *client,
                                unsigned int *mech_count);
@@ -107,15 +107,14 @@ void auth_client_get_connect_id(struct auth_client *client,
 struct auth_client_request *
 auth_client_request_new(struct auth_client *client,
                        const struct auth_request_info *request_info,
-                       auth_request_callback_t *callback, void *context)
-       ATTR_NULL(4);
+                       auth_request_callback_t *callback, void *context);
 /* Continue authentication. Call when
    reply->result == AUTH_CLIENT_REQUEST_CONTINUE */
 void auth_client_request_continue(struct auth_client_request *request,
                                  const char *data_base64);
 /* Abort ongoing authentication request. */
 void auth_client_request_abort(struct auth_client_request **request,
-                              const char *reason) ATTR_NULL(2);
+                              const char *reason);
 /* Return ID of this request. */
 unsigned int auth_client_request_get_id(struct auth_client_request *request);
 /* Return the PID of the server that handled this request. */