mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01: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 != '=')
|
||||
return set_error (GPG_ERR_ASS_PARAMETER, "missing value for option");
|
||||
line = (char *)++demand;
|
||||
for (; *line && !spacep (line); line++)
|
||||
;
|
||||
while (*line && !spacep (line))
|
||||
line++;
|
||||
if (*line)
|
||||
*line++ = 0;
|
||||
}
|
||||
@ -1229,8 +1229,8 @@ cmd_getattr (assuan_context_t ctx, char *line)
|
||||
return rc;
|
||||
|
||||
keyword = line;
|
||||
for (; *line && !spacep (line); line++)
|
||||
;
|
||||
while (*line && !spacep (line))
|
||||
line++;
|
||||
if (*line)
|
||||
*line++ = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user