]> sigrok.org Git - libsigrok.git/commit
serial-dmm: style nit (init vs assign, memmove(3))
authorGerhard Sittig <redacted>
Wed, 7 Feb 2018 21:34:35 +0000 (22:34 +0100)
committerUwe Hermann <redacted>
Sun, 18 Feb 2018 14:43:34 +0000 (15:43 +0100)
commit51e1f5661c7ff12fa902643d5c3f0fd0f7e43d52
tree18e86ebd5f8ffa05b925040655118550c283dcc4
parente4fb1a821dc879b15be9feea28cd439d103db971
serial-dmm: style nit (init vs assign, memmove(3))

Move the initial assignment to the 'offset' variable to the very spot
where it gets evaluated and subsequently manipulated.

Replace a DIY copy loop with the corresponding memmove(3) call.
src/hardware/serial-dmm/protocol.c