summaryrefslogtreecommitdiffstats
path: root/include/blkdev.h
diff options
context:
space:
mode:
authorKarel Zak2012-06-15 13:14:30 +0200
committerKarel Zak2012-06-15 13:14:30 +0200
commit2fc4a256ce16196ddb8d6f5a56809880632ac279 (patch)
tree702ca74fe63ebd90940de5f5a8a756dbbfa82ba7 /include/blkdev.h
parentlsblk: use fallback for TYPE (diff)
downloadkernel-qcow2-util-linux-2fc4a256ce16196ddb8d6f5a56809880632ac279.tar.gz
kernel-qcow2-util-linux-2fc4a256ce16196ddb8d6f5a56809880632ac279.tar.xz
kernel-qcow2-util-linux-2fc4a256ce16196ddb8d6f5a56809880632ac279.zip
lib/blkdev: return static strings by blkdev_scsi_type_to_name()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/blkdev.h')
-rw-r--r--include/blkdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/blkdev.h b/include/blkdev.h
index 8fca522c0..93586a0fb 100644
--- a/include/blkdev.h
+++ b/include/blkdev.h
@@ -134,7 +134,7 @@ int blkdev_get_geometry(int fd, unsigned int *h, unsigned int *s);
#define SCSI_TYPE_NO_LUN 0x7f
/* convert scsi type code to name */
-char *blkdev_scsi_type_to_name(int type);
+const char *blkdev_scsi_type_to_name(int type);
#endif /* BLKDEV_H */