]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r298753:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 4 May 2016 00:39:03 +0000 (00:39 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 4 May 2016 00:39:03 +0000 (00:39 +0000)
commit707bbf2237bc550b8e32af14211cc21594a8635d
treedae7ea1e6de44d10f30aa2eb638ae6bd19b8c8e9
parent18a2653cf10be3dc93b5b3284a1459c90a200d51
MFC r298753:

Fix va_list handling

- Add missing va_end's after corresponding va_start's to cleanup state
- Eliminate questionable bzero'ing of va_list passed in to
  do_buff_decode(..) and do_encode(..) from buff_{de,en}code_visit(..)
  and csio_{de,en}code_visit(..). Make va_list a pointer instead and
  pass NULL into the underlying functions to handler this in a portable
  way.
- Do some minor style(9) clean up in affected functions.

CID: 1018500-1018503

git-svn-id: svn://svn.freebsd.org/base/stable/10@299024 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libcam/scsi_cmdparse.c