From 7989aa01ac4d48dbb5dda7a106a270fe381f2852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 15 Sep 2022 09:18:44 +0800 Subject: const qualifiers for arguments when there won't be any more memory allocated for them. The redirect inline function params are swapped a bit. --- shopify.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'shopify.h') diff --git a/shopify.h b/shopify.h index 247bc1c..0c6f4e7 100644 --- a/shopify.h +++ b/shopify.h @@ -17,11 +17,11 @@ void shopify_init(); bool shopify_valid(struct MHD_Connection *conn, const char *url, const char *redir_url, const char *key, struct shopify_param *params[]); -enum MHD_Result shopify_respond(struct shopify_param params[], const char *url, - const char *redir_url, const char *app_url, const char *app_id, - const char *key, const char *secret_key, const char *toml_path, - const char *html_path, struct MHD_Connection *conn, - struct MHD_Response **resp); +enum MHD_Result shopify_respond(const struct shopify_param params[], + const char *url, const char *redir_url, const char *app_url, + const char *app_id, const char *key, const char *secret_key, + const char *toml_path, const char *html_path, + struct MHD_Connection *conn, struct MHD_Response **resp); void shopify_cleanup(); #ifdef __cplusplus -- cgit v1.2.3