diff options
author | David Shaw <[email protected]> | 2004-02-21 22:11:23 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2004-02-21 22:11:23 +0000 |
commit | 93b5a811ef897ca30929a66f0521738fb3c71307 (patch) | |
tree | 2d1cf82f6a24d6589949eabf16cf3a5ee8fa267f /g10/misc.c | |
parent | * keyserver.c (keyserver_export): Disallow user strings that aren't key (diff) | |
download | gnupg-93b5a811ef897ca30929a66f0521738fb3c71307.tar.gz gnupg-93b5a811ef897ca30929a66f0521738fb3c71307.zip |
* main.h, misc.c (hextobyte): Removed. It's in libutil.a now.
Diffstat (limited to 'g10/misc.c')
-rw-r--r-- | g10/misc.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/g10/misc.c b/g10/misc.c index 500abaaa4..e8bce52f5 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -476,31 +476,6 @@ pct_expando(const char *string,struct expando_args *args) return NULL; } -int -hextobyte( const char *s ) -{ - int c; - - if( *s >= '0' && *s <= '9' ) - c = 16 * (*s - '0'); - else if( *s >= 'A' && *s <= 'F' ) - c = 16 * (10 + *s - 'A'); - else if( *s >= 'a' && *s <= 'f' ) - c = 16 * (10 + *s - 'a'); - else - return -1; - s++; - if( *s >= '0' && *s <= '9' ) - c += *s - '0'; - else if( *s >= 'A' && *s <= 'F' ) - c += 10 + *s - 'A'; - else if( *s >= 'a' && *s <= 'f' ) - c += 10 + *s - 'a'; - else - return -1; - return c; -} - void deprecated_warning(const char *configname,unsigned int configlineno, const char *option,const char *repl1,const char *repl2) |