changeset 552:d93498f2a0f6

Make exif_rational_to_double() and exif_get_rational_as_double() static.
author zas_
date Fri, 02 May 2008 23:11:31 +0000
parents 5b127951daa1
children 32cf2e7992fd
files src/exif-common.c src/exif.h
diffstat 2 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/exif-common.c	Fri May 02 23:08:18 2008 +0000
+++ b/src/exif-common.c	Fri May 02 23:11:31 2008 +0000
@@ -41,7 +41,7 @@
 #include "ui_fileops.h"
 
 
-double exif_rational_to_double(ExifRational *r, gint sign)
+static double exif_rational_to_double(ExifRational *r, gint sign)
 {
 	if (!r || r->den == 0.0) return 0.0;
 
@@ -49,7 +49,7 @@
 	return (double)r->num / r->den;
 }
 
-double exif_get_rational_as_double(ExifData *exif, const gchar *key)
+static double exif_get_rational_as_double(ExifData *exif, const gchar *key)
 {
 	ExifRational *r;
 	gint sign;
--- a/src/exif.h	Fri May 02 23:08:18 2008 +0000
+++ b/src/exif.h	Fri May 02 23:11:31 2008 +0000
@@ -118,8 +118,6 @@
 gchar *exif_get_data_as_text(ExifData *exif, const gchar *key);
 gint exif_get_integer(ExifData *exif, const gchar *key, gint *value);
 ExifRational *exif_get_rational(ExifData *exif, const gchar *key, gint *sign);
-double exif_rational_to_double(ExifRational *r, gint sign);
-double exif_get_rational_as_double(ExifData *exif, const gchar *key);
 
 ExifItem *exif_get_item(ExifData *exif, const gchar *key);
 ExifItem *exif_add_item(ExifData *exif, const gchar *key);