Commit 9e29d27e3b6acf3d819d8bca9ed16b85fd2d16d9

Stefan Sperling 2018-03-15T01:36:32

revert accidental changes from 9feb4ff2689af67633c98892e721ccd407ea1c92 These changes enabled profiling.

diff --git a/got/Makefile b/got/Makefile
index b96fa54..8e74120 100644
--- a/got/Makefile
+++ b/got/Makefile
@@ -7,9 +7,7 @@ SRCS=		got.c delta.c error.c fileindex.c object.c path.c pack.c \
 CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib
 LDADD = -lutil -lz
 DPADD = ${LIBZ} ${LIBUTIL}
-CC = gcc
-DEBUG = -O0 -pg
-CPPFLAGS += -DPROFILE
+DEBUG = -O0 -g
 CFLAGS += -Werror -Wall -Wstrict-prototypes -Wunused-variable
 
 # For now, default to installing binary in ~/bin
diff --git a/got/got.c b/got/got.c
index 95a3c58..be95ec2 100644
--- a/got/got.c
+++ b/got/got.c
@@ -173,10 +173,8 @@ cmd_checkout(int argc, char *argv[])
 	argc -= optind;
 	argv += optind;
 
-#ifndef PROFILE
 	if (pledge("stdio rpath wpath cpath flock", NULL) == -1)
 		err(1, "pledge");
-#endif
 
 	if (argc == 1) {
 		char *cwd, *base, *dotgit;
@@ -300,10 +298,9 @@ cmd_log(int argc, char *argv[])
 	struct got_object *obj;
 	char *repo_path = NULL;
 
-#ifndef PROFILE
 	if (pledge("stdio rpath wpath cpath", NULL) == -1)
 		err(1, "pledge");
-#endif
+
 	if (argc == 1) {
 		repo_path = getcwd(NULL, 0);
 		if (repo_path == NULL)