diff options
author | NIIBE Yutaka <[email protected]> | 2022-03-10 02:02:11 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2022-03-10 02:02:11 +0000 |
commit | d577ed29563768221b1aedb1fb4aebe64b23f3bf (patch) | |
tree | c36b313edc81aa297f9edf28c102a437f433b389 | |
parent | sign: Construct valid AEAD packets. (diff) | |
download | gnupg-d577ed29563768221b1aedb1fb4aebe64b23f3bf.tar.gz gnupg-d577ed29563768221b1aedb1fb4aebe64b23f3bf.zip |
scd: Use same idiom for same work.
* scd/command.c (cmd_serialno, cmd_getattr): Use 'while' instead of
'for'.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r-- | scd/command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scd/command.c b/scd/command.c index 28ab0f3c4..b4f662924 100644 --- a/scd/command.c +++ b/scd/command.c @@ -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; |