emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/pq 8c03aeb2ec 15/63: Fix nargs compatible pointer type


From: ELPA Syncer
Subject: [elpa] externals/pq 8c03aeb2ec 15/63: Fix nargs compatible pointer type
Date: Mon, 14 Feb 2022 23:24:19 -0500 (EST)

branch: externals/pq
commit 8c03aeb2ecd1860e495ef3cd9731064596a8c464
Author: Mario Rodas <marsam@users.noreply.github.com>
Commit: Mario Rodas <marsam@users.noreply.github.com>

    Fix nargs compatible pointer type
---
 pq.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pq.c b/pq.c
index e58d47949b..c707503331 100644
--- a/pq.c
+++ b/pq.c
@@ -8,7 +8,7 @@
 
 #define MAX_PQ_PARAMS 12
 
-void *plugin_is_GPL_compatible;
+int plugin_is_GPL_compatible;
 
 static emacs_value Qnil;
 static emacs_value Qt;
@@ -55,7 +55,7 @@ static char *my_string_to_c(emacs_env *env, emacs_value 
string)
 }
 
 static emacs_value
-Fpq_connectdb (emacs_env *env, int nargs, emacs_value args[], void *data)
+Fpq_connectdb (emacs_env *env, ptrdiff_t nargs, emacs_value args[], void *data)
 {
   char *conninfo = nargs ? my_string_to_c(env, args[0]) : "";
   PGconn *conn = PQconnectdb(conninfo);
@@ -115,7 +115,7 @@ pq_getvalue_internal(emacs_env *env, PGresult *res, int 
row, int column)
 }
 
 static emacs_value
-Fpq_query (emacs_env *env, int nargs, emacs_value args[], void *data)
+Fpq_query (emacs_env *env, ptrdiff_t nargs, emacs_value args[], void *data)
 {
   if (!env->is_not_nil(env, args[0]))
     return Qnil;
@@ -169,7 +169,7 @@ Fpq_query (emacs_env *env, int nargs, emacs_value args[], 
void *data)
 }
 
 static emacs_value
-Fpq_escape (emacs_env *env, int nargs, emacs_value args[], void *data)
+Fpq_escape (emacs_env *env, ptrdiff_t nargs, emacs_value args[], void *data)
 {
   if (!env->is_not_nil(env, args[0]))
     return Qnil;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]