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:
75c74a8
)
c++: Fix typo in module-mapper [PR 98318]
author
Nathan Sidwell
<nathan@acm.org>
Thu, 25 Feb 2021 12:57:09 +0000
(
04:57
-0800)
committer
Nathan Sidwell
<nathan@acm.org>
Thu, 25 Feb 2021 13:00:09 +0000
(
05:00
-0800)
User reported this typo: '0' and '-' are right next to each other, and
as it happened I always had networking, so it went unnoticed.
PR c++/98318
gcc/cp/
* mapper-client.cc (module_client::open_module_client): Fix typo
of fd init.
gcc/cp/mapper-client.cc
patch
|
blob
|
history
diff --git
a/gcc/cp/mapper-client.cc
b/gcc/cp/mapper-client.cc
index
a72b4b7
..
774e2b2
100644
(file)
--- a/
gcc/cp/mapper-client.cc
+++ b/
gcc/cp/mapper-client.cc
@@
-249,7
+249,7
@@
module_client::open_module_client (location_t loc, const char *o,
if (port && endp != cptr + 1 && !*endp)
{
name[colon] = 0;
- int fd =
0
1;
+ int fd =
-
1;
#if CODY_NETWORKING
fd = Cody::OpenInet6 (&errmsg, name.c_str (), port);
#endif