]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix code style
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 29 Aug 2019 19:32:47 +0000 (21:32 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 5 Sep 2019 20:04:43 +0000 (22:04 +0200)
src/ccache.cpp

index 8568d405aa07280b77d9a70b2bef1bb750f2b2c7..618be6e6cae1922ff987734aaf3575f9ae93bcc9 100644 (file)
@@ -772,12 +772,12 @@ make_relative_path(char* path)
 
 #ifdef _WIN32
   if (path[0] == '/') {
-    char *p = NULL;
+    charp = NULL;
     if (isalpha(path[1]) && path[2] == '/') {
       // Transform /c/path... to c:/path...
       p = format("%c:/%s", path[1], &path[3]);
     } else {
-      p = x_strdup(path+1); // Skip leading slash.
+      p = x_strdup(path + 1); // Skip leading slash.
     }
     free(path);
     path = p;