summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/progname.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/progname.c b/src/progname.c
index 0a47c22..a5675c0 100644
--- a/src/progname.c
+++ b/src/progname.c
@@ -1,5 +1,6 @@
/*
* Copyright © 2006 Robert Millan
+ * Copyright © 2010 Guillem Jover
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -30,16 +31,16 @@
#include <bsd/stdlib.h>
-static char *__progname = NULL;
+static const char *__progname = NULL;
-char *
-getprogname()
+const char *
+getprogname(void)
{
return __progname;
}
void
-setprogname(char *new)
+setprogname(const char *new)
{
__progname = new;
}