projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b800f80
)
libgm2/libm2pim/sckt.cc:254:3: warning: memset() called to fill 0 bytes [PR108944]
author
Gaius Mulley
<gaiusmod2@gmail.com>
Mon, 27 Feb 2023 16:29:18 +0000
(16:29 +0000)
committer
Gaius Mulley
<gaiusmod2@gmail.com>
Mon, 27 Feb 2023 16:29:18 +0000
(16:29 +0000)
The pattern parameter to memset is second. Correct an obvious mistake
in libm2pim/sckt.cc.
libgm2/ChangeLog:
PR modula2/108944
* libm2pim/sckt.cc (getLocalIP): Correct parameter order.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
libgm2/libm2pim/sckt.cc
patch
|
blob
|
history
diff --git
a/libgm2/libm2pim/sckt.cc
b/libgm2/libm2pim/sckt.cc
index
ee579c2
..
cd9d9c5
100644
(file)
--- a/
libgm2/libm2pim/sckt.cc
+++ b/
libgm2/libm2pim/sckt.cc
@@
-251,7
+251,7
@@
EXPORT(getLocalIP) (tcpServerState *s)
return 0;
}
- memset (&sa,
sizeof (struct sockaddr_in), 0
);
+ memset (&sa,
0, sizeof (struct sockaddr_in)
);
sa.sin_family = AF_INET;
sa.sin_port = htons (80);
if (hp->h_length == sizeof (unsigned int))