1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 04:44:10 +02:00
openwrt-packages/devel/lpc21isp/patches/110-bzero.patch
Ilya Lipnitskiy 5d8d4fbbcb
treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-20 16:02:15 -08:00

12 lines
450 B
Diff

--- a/lpc21isp.c
+++ b/lpc21isp.c
@@ -533,7 +533,7 @@ static void OpenSerialPort(ISP_ENVIRONME
tcgetattr(IspEnvironment->fdCom, &IspEnvironment->oldtio); /* save current port settings */
- bzero(&IspEnvironment->newtio, sizeof(IspEnvironment->newtio));
+ memset(&IspEnvironment->newtio, 0, sizeof(IspEnvironment->newtio));
IspEnvironment->newtio.c_cflag = CS8 | CLOCAL | CREAD;
#if defined(__FreeBSD__) || defined(__OpenBSD__)