mirror of
https://github.com/sheumann/hush.git
synced 2024-12-25 18:33:06 +00:00
apgo in Bug 351 says: punt parse_version_number since it is no longer used
This commit is contained in:
parent
bb9a0ad95a
commit
f7eaf5a012
@ -86,30 +86,6 @@ static int int_log10(unsigned int arg)
|
||||
return l;
|
||||
}
|
||||
|
||||
static int parse_version_number(const char *s)
|
||||
{
|
||||
int major, minor, rev;
|
||||
char *endptr;
|
||||
const char *cp = s;
|
||||
|
||||
if (!s)
|
||||
return 0;
|
||||
major = strtol(cp, &endptr, 10);
|
||||
if (cp == endptr || *endptr != '.')
|
||||
return 0;
|
||||
cp = endptr + 1;
|
||||
minor = strtol(cp, &endptr, 10);
|
||||
if (cp == endptr || *endptr != '.')
|
||||
return 0;
|
||||
cp = endptr + 1;
|
||||
rev = strtol(cp, &endptr, 10);
|
||||
if (cp == endptr)
|
||||
return 0;
|
||||
return ((((major * 256) + minor) * 256) + rev);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* This function sets the default parameters for a filesystem
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user