aboutsummaryrefslogtreecommitdiff
path: root/src/libnpass/gpg.c
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-04-10 13:52:01 +0530
committersinanmohd <sinan@sinanmohd.com>2024-04-10 17:38:03 +0530
commit9c490f66d98af0bdc96583f1cd438955708a5741 (patch)
tree4b76ef202dbd82eb1238c2387da4ad8a85007f7c /src/libnpass/gpg.c
parent82542902de23f14ea5641e4199c0a43fee251525 (diff)
c: declare local functions as static
Diffstat (limited to 'src/libnpass/gpg.c')
-rw-r--r--src/libnpass/gpg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libnpass/gpg.c b/src/libnpass/gpg.c
index 9e3bb7a..f193363 100644
--- a/src/libnpass/gpg.c
+++ b/src/libnpass/gpg.c
@@ -18,10 +18,10 @@
static gpgme_ctx_t ctx = NULL;
static gpgme_key_t key = NULL;
-int gpg_init(void);
-void gpg_cleanup(void);
+static int gpg_init(void);
+static void gpg_cleanup(void);
-int gpg_init(void)
+static int gpg_init(void)
{
gpgme_error_t err;
const char *local = setlocale(LC_ALL, "");
@@ -40,7 +40,7 @@ int gpg_init(void)
return 0;
}
-void gpg_cleanup(void)
+static void gpg_cleanup(void)
{
if (ctx)
gpgme_key_release(key);