mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
scd: Use same idiom for same work.
* scd/command.c (cmd_serialno, cmd_getattr): Use 'while' instead of 'for'. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
eadf12a52c
commit
d577ed2956
@ -343,8 +343,8 @@ cmd_serialno (assuan_context_t ctx, char *line)
|
|||||||
if (*demand != '=')
|
if (*demand != '=')
|
||||||
return set_error (GPG_ERR_ASS_PARAMETER, "missing value for option");
|
return set_error (GPG_ERR_ASS_PARAMETER, "missing value for option");
|
||||||
line = (char *)++demand;
|
line = (char *)++demand;
|
||||||
for (; *line && !spacep (line); line++)
|
while (*line && !spacep (line))
|
||||||
;
|
line++;
|
||||||
if (*line)
|
if (*line)
|
||||||
*line++ = 0;
|
*line++ = 0;
|
||||||
}
|
}
|
||||||
@ -1229,8 +1229,8 @@ cmd_getattr (assuan_context_t ctx, char *line)
|
|||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
keyword = line;
|
keyword = line;
|
||||||
for (; *line && !spacep (line); line++)
|
while (*line && !spacep (line))
|
||||||
;
|
line++;
|
||||||
if (*line)
|
if (*line)
|
||||||
*line++ = 0;
|
*line++ = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user