summaryrefslogtreecommitdiffstats
path: root/g10/photoid.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/photoid.c')
-rw-r--r--g10/photoid.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/g10/photoid.c b/g10/photoid.c
index f9720d329..6d7ef7cba 100644
--- a/g10/photoid.c
+++ b/g10/photoid.c
@@ -233,9 +233,10 @@ int parse_image_header(const struct user_attribute *attr,byte *type,u32 *len)
make sure it is not too big (see parse-packet.c:parse_attribute).
Extensions should be 3 characters long for the best cross-platform
compatibility. */
-char *image_type_to_string(byte type,int style)
+const char *
+image_type_to_string(byte type,int style)
{
- char *string;
+ const char *string;
switch(type)
{