Blame 0002-rename-hdf_close-to-hdf_fclose-due-to-first-exposed-.patch

08c45a3
From 376e966ff9333e43a77e6ddf1cebbef1032a8e61 Mon Sep 17 00:00:00 2001
08c45a3
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
08c45a3
Date: Sat, 7 Nov 2015 15:46:23 +0100
08c45a3
Subject: [PATCH 2/2] rename hdf_close to hdf_fclose due to first exposed in
08c45a3
 netcdf
08c45a3
08c45a3
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
08c45a3
---
08c45a3
 libsrc/hdf_convenience.c    | 2 +-
08c45a3
 libsrc/hdf_convenience.h    | 2 +-
08c45a3
 libsrc/minc_routines.h      | 2 +-
08c45a3
 libsrc/netcdf_convenience.c | 2 +-
08c45a3
 4 files changed, 4 insertions(+), 4 deletions(-)
08c45a3
08c45a3
diff --git a/libsrc/hdf_convenience.c b/libsrc/hdf_convenience.c
08c45a3
index b65695c..5f5fb2a 100644
08c45a3
--- a/libsrc/hdf_convenience.c
08c45a3
+++ b/libsrc/hdf_convenience.c
08c45a3
@@ -2388,7 +2388,7 @@ hdf_create(const char *path, int cmode, struct mi2opts *opts_ptr)
08c45a3
 }
08c45a3
 
08c45a3
 int
08c45a3
-hdf_close(int fd)
08c45a3
+hdf_fclose(int fd)
08c45a3
 {
08c45a3
     hdf_dim_commit(fd);         /* Make sure all dimensions were saved. */
08c45a3
     hdf_id_del(fd);		/* Delete it from the list. */
08c45a3
diff --git a/libsrc/hdf_convenience.h b/libsrc/hdf_convenience.h
08c45a3
index c3d158b..f6e471c 100644
08c45a3
--- a/libsrc/hdf_convenience.h
08c45a3
+++ b/libsrc/hdf_convenience.h
08c45a3
@@ -47,6 +47,6 @@ extern herr_t hdf_copy_attr(hid_t in_id, const char *attr_name, void *op_data);
08c45a3
 
08c45a3
 extern int hdf_open(const char *path, int mode);
08c45a3
 extern int hdf_create(const char *path, int mode, struct mi2opts *opts_ptr);
08c45a3
-extern int hdf_close(int fd);
08c45a3
+extern int hdf_fclose(int fd);
08c45a3
 extern int hdf_access(const char *path);
08c45a3
 
08c45a3
diff --git a/libsrc/minc_routines.h b/libsrc/minc_routines.h
08c45a3
index b27506a..ad47272 100644
08c45a3
--- a/libsrc/minc_routines.h
08c45a3
+++ b/libsrc/minc_routines.h
08c45a3
@@ -101,6 +101,6 @@ extern int hdf_var_declare(int fd, char *varnm, char *varpath, int ndims,
08c45a3
 
08c45a3
 extern int hdf_create(const char *path, int cmode, struct mi2opts *opts_ptr);
08c45a3
 extern int hdf_open(const char *path, int mode);
08c45a3
-extern int hdf_close(int fd);
08c45a3
+extern int hdf_fclose(int fd);
08c45a3
 #endif /* MINC2 */
08c45a3
 #endif
08c45a3
diff --git a/libsrc/netcdf_convenience.c b/libsrc/netcdf_convenience.c
08c45a3
index d9df8ba..56d7ec0 100644
08c45a3
--- a/libsrc/netcdf_convenience.c
08c45a3
+++ b/libsrc/netcdf_convenience.c
08c45a3
@@ -673,7 +673,7 @@ MNCAPI int miclose(int cdfid)
08c45a3
 
08c45a3
 #if MINC2
08c45a3
    if (MI2_ISH5OBJ(cdfid)) {
08c45a3
-       status = hdf_close(cdfid);
08c45a3
+       status = hdf_fclose(cdfid);
08c45a3
    }
08c45a3
    else {
08c45a3
        status = ncclose(cdfid);
08c45a3
-- 
08c45a3
2.6.2
08c45a3