summaryrefslogtreecommitdiff
path: root/include/bsd
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2010-01-21 14:34:55 +0100
committerGuillem Jover <guillem@hadrons.org>2010-01-21 14:34:55 +0100
commit30c794083f5211ecf82f5c3614f35a16a7e4d354 (patch)
tree3721eeaeeb6e24d28a3b938fb1d3eb546e9b6a83 /include/bsd
parentddebbd6792e5c7ae53fb96cdc46566fc843adaa5 (diff)
downloadlibbsd-30c794083f5211ecf82f5c3614f35a16a7e4d354.tar.gz
Make setprogname and getprogname arguments and return value const
This is more correct as the strings are not going to be changed, and it matches the function signatures on other BSDs. Suggested-by: Aurelien Jarno <aurel32@debian.org>
Diffstat (limited to 'include/bsd')
-rw-r--r--include/bsd/stdlib.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/bsd/stdlib.h b/include/bsd/stdlib.h
index cec5a28..6e7a88c 100644
--- a/include/bsd/stdlib.h
+++ b/include/bsd/stdlib.h
@@ -1,7 +1,7 @@
/*
* Copyright © 2005 Aurelien Jarno
* Copyright © 2006 Robert Millan
- * Copyright © 2008, 2009 Guillem Jover
+ * Copyright © 2008, 2009, 2010 Guillem Jover
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -48,8 +48,8 @@ void arc4random_addrandom(u_char *dat, int datlen);
int dehumanize_number(const char *str, int64_t *size);
-char *getprogname ();
-void setprogname (char *);
+const char *getprogname(void);
+void setprogname(const char *);
int heapsort (void *, size_t, size_t, int (*)(const void *, const void *));