From: Daniel Dickinson Date: Sun, 22 May 2016 09:22:47 +0000 (-0400) Subject: block.c: Make static string a const char * instead char * X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7a967198b9b18d00526094a43248b1c0892eb4aa;p=oweals%2Ffstools.git block.c: Make static string a const char * instead char * There is no reason for e2fsck string to be altered, and the only places where is used take const char * as parameters so make e2fsck a const char *. Signed-off-by: Daniel Dickinson --- diff --git a/block.c b/block.c index ef58665..71ffd0b 100644 --- a/block.c +++ b/block.c @@ -627,7 +627,7 @@ static void check_filesystem(struct blkid_struct_probe *pr) { pid_t pid; struct stat statbuf; - char *e2fsck = "/usr/sbin/e2fsck"; + const char *e2fsck = "/usr/sbin/e2fsck"; /* UBIFS does not need stuff like fsck */ if (!strncmp(pr->id->name, "ubifs", 5))