mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* util.h (digitp, hexdigitp): New ctype like macros.
(atoi_1,atoi_2,atoi_4,xtoi_1,xtoi_2): New. * command.c: Removed the conversion macros as they are now in ../common/util.h.
This commit is contained in:
parent
317bccd134
commit
7606e3b33a
6 changed files with 41 additions and 17 deletions
|
@ -316,7 +316,7 @@ cmd_message (ASSUAN_CONTEXT ctx, char *line)
|
|||
if (strncmp (line, "FD=", 3))
|
||||
return set_error (Syntax_Error, "FD=<n> expected");
|
||||
line += 3;
|
||||
if (!digitp (*line))
|
||||
if (!digitp (line))
|
||||
return set_error (Syntax_Error, "number required");
|
||||
fd = strtoul (line, &endp, 10);
|
||||
if (*endp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue