Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit dffd977

Browse files
committed
Fixing field names
1 parent 5c7007a commit dffd977

File tree

1 file changed

+11
-11
lines changed
  • src/Microsoft.AspNet.Server.Kestrel/Networking

1 file changed

+11
-11
lines changed

src/Microsoft.AspNet.Server.Kestrel/Networking/Libuv.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -395,30 +395,30 @@ public uv_buf_t buf_init(IntPtr memory, int len)
395395

396396
public struct sockaddr
397397
{
398-
private long x0;
399-
private long x1;
400-
private long x2;
401-
private long x3;
398+
private long _field0;
399+
private long _field1;
400+
private long _field2;
401+
private long _field3;
402402

403-
public sockaddr(long ignored) { x3 = x0 = x1 = x2 = x3 = 0; }
403+
public sockaddr(long ignored) { _field3 = _field0 = _field1 = _field2 = _field3 = 0; }
404404
}
405405

406406
public struct uv_buf_t
407407
{
408-
public IntPtr x0;
409-
public IntPtr x1;
408+
public IntPtr _field0;
409+
public IntPtr _field1;
410410

411411
public uv_buf_t(IntPtr memory, int len, bool IsWindows)
412412
{
413413
if (IsWindows)
414414
{
415-
x0 = (IntPtr)len;
416-
x1 = memory;
415+
_field0 = (IntPtr)len;
416+
_field1 = memory;
417417
}
418418
else
419419
{
420-
x0 = memory;
421-
x1 = (IntPtr)len;
420+
_field0 = memory;
421+
_field1 = (IntPtr)len;
422422
}
423423
}
424424
}

0 commit comments

Comments
 (0)