summaryrefslogtreecommitdiffstats
path: root/hl/examples
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-07-27 22:00:07 (GMT)
committerGitHub <noreply@github.com>2023-07-27 22:00:07 (GMT)
commit0e82707100cf3d1b698d2ec0cad08db61d552d63 (patch)
tree6d8c9adf10cb2f52f7ad33b93e30ee0aef3125e0 /hl/examples
parent61186204c020a81b5b0044a3b5e08311ccf1424d (diff)
downloadhdf5-0e82707100cf3d1b698d2ec0cad08db61d552d63.zip
hdf5-0e82707100cf3d1b698d2ec0cad08db61d552d63.tar.gz
hdf5-0e82707100cf3d1b698d2ec0cad08db61d552d63.tar.bz2
Misc missed things from previous merges (#3295)
Diffstat (limited to 'hl/examples')
-rw-r--r--hl/examples/ex_image1.c2
-rw-r--r--hl/examples/ex_image2.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/hl/examples/ex_image1.c b/hl/examples/ex_image1.c
index d9080cb..49a9093 100644
--- a/hl/examples/ex_image1.c
+++ b/hl/examples/ex_image1.c
@@ -16,7 +16,7 @@
#define WIDTH 400
#define HEIGHT 200
#define PAL_ENTRIES 9
-unsigned char buf[WIDTH * HEIGHT];
+static unsigned char buf[WIDTH * HEIGHT];
int
main(void)
diff --git a/hl/examples/ex_image2.c b/hl/examples/ex_image2.c
index 579b126..9ce1746 100644
--- a/hl/examples/ex_image2.c
+++ b/hl/examples/ex_image2.c
@@ -22,8 +22,8 @@
#define PAL_NAME "palette"
#define PAL_ENTRIES 256
-static int read_data(const char *file_name, hsize_t *width, hsize_t *height);
-unsigned char *gbuf = NULL; /* global buffer for image data */
+static int read_data(const char *file_name, hsize_t *width, hsize_t *height);
+static unsigned char *gbuf = NULL; /* global buffer for image data */
int
main(void)