[systemd-devel] [PATCH 2/4] shared: mark strv_length() _pure_

Shawn Landden shawn at churchofgit.com
Sun Dec 1 14:50:15 PST 2013


---
 src/shared/strv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/strv.c b/src/shared/strv.c
index 607c221..cc6adfa 100644
--- a/src/shared/strv.c
+++ b/src/shared/strv.c
@@ -84,7 +84,7 @@ char **strv_copy(char * const *l) {
         return r;
 }
 
-unsigned strv_length(char * const *l) {
+_pure_ unsigned strv_length(char * const *l) {
         unsigned n = 0;
 
         if (!l)
-- 
1.8.4.4



More information about the systemd-devel mailing list