a few minor tweaks

svn:r3041
This commit is contained in:
Roger Dingledine
2004-11-30 08:54:08 +00:00
parent 19ada3f7fa
commit 7a8c1ca1e4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -316,7 +316,7 @@ int strcmpend(const char *s1, const char *s2)
int strcasecmpend(const char *s1, const char *s2)
{
size_t n1 = strlen(s1), n2 = strlen(s2);
if (n2>n1)
if (n2>n1) /* then they can't be the same; figure out which is bigger */
return strcasecmp(s1,s2);
else
return strncasecmp(s1+(n1-n2), s2, n2);
+1 -1
View File
@@ -178,7 +178,7 @@ main(int argc, char **argv)
arg = &argv[1];
n_args = argc-1;
if (argc < 2)
if (!n_args)
usage();
if (!strcmp("-v", arg[0])) {