summaryrefslogtreecommitdiff
path: root/src/udev/scsi_id
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2012-04-04 05:31:21 +0200
committerKay Sievers <kay.sievers@vrfy.org>2012-04-04 05:31:21 +0200
commit4b0060e68bab7bddbe8968082af8e042b8c11316 (patch)
tree48e347fef35f8f12c719436f4aa89f25cfc680ca /src/udev/scsi_id
parent6df831f25ebc9f55cd939f04392dad9237706e45 (diff)
udev: fix gcc warnings
Diffstat (limited to 'src/udev/scsi_id')
-rw-r--r--src/udev/scsi_id/scsi_id.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/udev/scsi_id/scsi_id.c b/src/udev/scsi_id/scsi_id.c
index 9bb0d7f538..206cbfd095 100644
--- a/src/udev/scsi_id/scsi_id.c
+++ b/src/udev/scsi_id/scsi_id.c
@@ -78,7 +78,7 @@ static void set_type(const char *from, char *to, size_t len)
{
int type_num;
char *eptr;
- char *type = "generic";
+ const char *type = "generic";
type_num = strtoul(from, &eptr, 0);
if (eptr != from) {
@@ -122,10 +122,10 @@ static void set_type(const char *from, char *to, size_t len)
*/
static char *get_value(char **buffer)
{
- static char *quote_string = "\"\n";
- static char *comma_string = ",\n";
+ static const char *quote_string = "\"\n";
+ static const char *comma_string = ",\n";
char *val;
- char *end;
+ const char *end;
if (**buffer == '"') {
/*