Commit 56cca8e554841d883e93d5695fb154ecf07c2ae3

Stefan Sperling 2018-06-04T20:54:13

use macro instead of literal ".pack"

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/pack.c b/lib/pack.c
index dcf3756..1c06e34 100644
--- a/lib/pack.c
+++ b/lib/pack.c
@@ -107,7 +107,7 @@ get_packfile_size(size_t *size, const char *path)
 		free(path_pack);
 		if (err)
 			return err;
-	} else if (strcmp(dot, ".pack") == 0) {
+	} else if (strcmp(dot, GOT_PACKFILE_SUFFIX) == 0) {
 		if (stat(path, &sb) != 0)
 			return got_error_from_errno();
 	} else