about summary refs log tree commit diff
path: root/example.c
diff options
context:
space:
mode:
Diffstat (limited to 'example.c')
-rw-r--r--example.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/example.c b/example.c
index e9f57d5..0429663 100644
--- a/example.c
+++ b/example.c
@@ -11,13 +11,13 @@
 int
 main(int argc, char *argv[])
 {
-	char *path = getenv("PATH");
+	const char *path = getenv("PATH");
 	if (!path)
 	    path = "";
 
-	char *program = argc > 1 ? argv[1] : "xyzzy";
+	const char *program = argc > 1 ? argv[1] : "xyzzy";
 
-	char *pathend = path + strlen(path);
+	const char *pathend = path + strlen(path);
 
 	char buf[PATH_MAX];
 	char *bufend = buf + sizeof buf;