diff options
author | NIIBE Yutaka <[email protected]> | 2019-07-23 03:04:21 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2019-07-23 03:04:21 +0000 |
commit | 7bfbb9fa7e7693cd7f19a8d130aa0a9a82825d5d (patch) | |
tree | ce5bc4f29a2278f3e3897499dc447c34562adfe6 /g10/photoid.c | |
parent | scd: Error code map fix for older Yubikey. (diff) | |
download | gnupg-7bfbb9fa7e7693cd7f19a8d130aa0a9a82825d5d.tar.gz gnupg-7bfbb9fa7e7693cd7f19a8d130aa0a9a82825d5d.zip |
gpg: A little clean up.
* g10/keyserver.c: Don't include exec.h.
* g10/photoid.c (image_type_to_string): It's constant.
* g10/photoid.h (image_type_to_string): Likewise.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'g10/photoid.c')
-rw-r--r-- | g10/photoid.c | 5 |
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) { |