From 1b9e724e9501befd36c2c1f6a7e8b0474a8bc704 Mon Sep 17 00:00:00 2001
From: Uwe Schulzweida <uwe.schulzweida@mpimet.mpg.de>
Date: Mon, 20 Jun 2022 20:45:19 +0200
Subject: [PATCH] Rename has_uri() to has_uri_scheme().

---
 src/cdf.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/cdf.c b/src/cdf.c
index 7c44f5ddc..8b0061cd6 100644
--- a/src/cdf.c
+++ b/src/cdf.c
@@ -88,7 +88,7 @@ cdfComment(int ncid)
 #endif
 
 static bool
-has_uri(const char *uri)
+has_uri_scheme(const char *uri)
 {
   char *pos = strstr(uri, "://");
   if (pos)
@@ -141,13 +141,13 @@ cdfOpenFile(const char *filename, const char *mode, int *filetype)
           if (*filetype == CDI_FILETYPE_NC4) writemode |= NC_NETCDF4;
           if (*filetype == CDI_FILETYPE_NCZARR) writemode |= NC_NETCDF4;
 #endif
-          const bool hasUri = has_uri(filename);
+          const bool hasUriScheme = has_uri_scheme(filename);
 
           if (*filetype == CDI_FILETYPE_NCZARR)
             {
-              if (!hasUri)
+              if (!hasUriScheme)
                 {
-                  fprintf(stderr, "URI is missing in NCZarr path!\n");
+                  fprintf(stderr, "URI scheme is missing in NCZarr path!\n");
                   return CDI_EINVAL;
                 }
 
@@ -155,7 +155,7 @@ cdfOpenFile(const char *filename, const char *mode, int *filetype)
             }
           else
             {
-              if (hasUri) fprintf(stderr, "URI defined for non NCZarr Data Model!\n");
+              if (hasUriScheme) fprintf(stderr, "URI scheme defined for non NCZarr Data Model!\n");
 
               cdf__create(filename, writemode, &ncid);
             }
-- 
GitLab