pwmd_open(): Keep a consistant sub-command syntax.
commita5f5d053d501dfc4eb036aa26be631625abcdbaf
authorBen Kibbey <bjk@luxsci.net>
Fri, 2 Nov 2018 19:05:20 +0000 (2 12:05 -0700)
committerBen Kibbey <bjk@luxsci.net>
Fri, 2 Nov 2018 19:05:20 +0000 (2 12:05 -0700)
tree0ef5e2b037b8d6e3ae90ab2f61f108ff2f3a02af
parent7bf6dab5d7aaeba08394be02098d3eba5c5288ff
pwmd_open(): Keep a consistant sub-command syntax.

Whether to use pwmd_bulk_append() or pwmd_bulk_append_rc() depends on
whether there was a previous call to pwmd_bulk_append() and this may
change depending on the connection type and pinentry options. Use a
dummy "NOP" command to start the command list then add all other
commands with pwmd_bulk_append_rc() since NOP always succeeds.
src/libpwmd.c