]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Use strtoi64 instead of strtoll
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 27 May 2026 15:12:27 +0000 (17:12 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 27 May 2026 15:12:27 +0000 (17:12 +0200)
This is mostly for notational consistency, since the result is stored
in a variable of type int64.

contrib/pg_stash_advice/stashpersist.c

index 00a0a74f04df3f175d391cb8c14f6254cee610e8..008f8d25b48d572cb9ba2becedf204bc79acdbd1 100644 (file)
@@ -432,7 +432,7 @@ pgsa_read_from_disk(void)
 
                        /* Parse the query ID. */
                        errno = 0;
-                       queryId = strtoll(queryid_str, &endptr, 10);
+                       queryId = strtoi64(queryid_str, &endptr, 10);
                        if (*endptr != '\0' || errno != 0 || queryid_str == endptr ||
                                queryId == 0)
                                ereport(ERROR,