summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2013-08-19 08:24:19 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2013-08-19 08:24:19 +0400
commitdeb31e75f8042f6f15d78e6695e849991d2b9e05 (patch)
tree9f2d639171f4dfb6c21ced8035acb63e3e1f56ff
parentc5074806deabf5caa90235d1b7c2781a6d9c1a0d (diff)
downloademacs-deb31e75f8042f6f15d78e6695e849991d2b9e05.tar.gz
emacs-deb31e75f8042f6f15d78e6695e849991d2b9e05.tar.bz2
emacs-deb31e75f8042f6f15d78e6695e849991d2b9e05.zip
* image.c (imagemagick_create_cache, imagemagick_get_animation_cache)
(imagemagick_prune_animation_cache): Now static.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/image.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7ee41698bad..0f68f36a8c9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2013-08-19 Dmitry Antipov <dmantipov@yandex.ru>
+
+ * image.c (imagemagick_create_cache, imagemagick_get_animation_cache)
+ (imagemagick_prune_animation_cache): Now static.
+
2013-08-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
* image.c (imagemagick_get_animation_cache): Don't segfault when
diff --git a/src/image.c b/src/image.c
index 1452e8659b5..a8210e2414a 100644
--- a/src/image.c
+++ b/src/image.c
@@ -7887,18 +7887,18 @@ struct animation_cache
static struct animation_cache *animation_cache = NULL;
-struct animation_cache *
+static struct animation_cache *
imagemagick_create_cache (char *signature)
{
- struct animation_cache *cache = xzalloc (sizeof (struct animation_cache));
+ struct animation_cache *cache = xzalloc (sizeof *cache);
cache->signature = signature;
cache->update_time = current_emacs_time ();
return cache;
}
/* Discard cached images that haven't been used for a minute. */
-void
-imagemagick_prune_animation_cache ()
+static void
+imagemagick_prune_animation_cache (void)
{
struct animation_cache *cache = animation_cache;
struct animation_cache *prev = NULL;
@@ -7928,7 +7928,7 @@ imagemagick_prune_animation_cache ()
}
}
-struct animation_cache *
+static struct animation_cache *
imagemagick_get_animation_cache (MagickWand *wand)
{
char *signature = xstrdup (MagickGetImageSignature (wand));