From 9052088997e1d31af73c85f696c70b16c879700c Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 15 Oct 2006 22:43:30 +0000 Subject: [PATCH] add casts --- sbin/gpt/label.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/gpt/label.c b/sbin/gpt/label.c index 28b8917788e2..6c1fd15653b5 100644 --- a/sbin/gpt/label.c +++ b/sbin/gpt/label.c @@ -29,7 +29,7 @@ __FBSDID("$FreeBSD: src/sbin/gpt/label.c,v 1.3 2006/10/04 18:20:25 marcel Exp $"); #endif #ifdef __RCSID -__RCSID("$NetBSD: label.c,v 1.2 2006/10/15 22:36:29 christos Exp $"); +__RCSID("$NetBSD: label.c,v 1.3 2006/10/15 22:43:30 christos Exp $"); #endif #include @@ -173,7 +173,7 @@ name_from_file(const char *fn) fclose(f); name[len] = '\0'; /* Only keep the first line, excluding the newline character. */ - p = strchr(name, '\n'); + p = strchr((const char *)name, '\n'); if (p != NULL) *p = '\0'; } @@ -214,7 +214,7 @@ cmd_label(int argc, char *argv[]) case 'l': if (name != NULL) usage_label(); - name = strdup(optarg); + name = (uint8_t *)strdup(optarg); break; case 's': if (size > 0)