Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create the passed socket explicitly in htparser rather than generally in sendreq().
[ashd.git]
/
lib
/
utils.c
diff --git
a/lib/utils.c
b/lib/utils.c
index
3dda9e5
..
e0dc22c
100644
(file)
--- a/
lib/utils.c
+++ b/
lib/utils.c
@@
-167,3
+167,11
@@
void freeca(char **ca)
free(*c);
free(ca);
}
free(*c);
free(ca);
}
+
+int calen(char **a)
+{
+ int i;
+
+ for(i = 0; *a; a++, i++);
+ return(i);
+}