mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
Merge pull request #669 from alexrp/errno
Use errno instead of getErrno in Phobos.
This commit is contained in:
commit
0b4df6a57b
4 changed files with 8 additions and 8 deletions
|
@ -2262,7 +2262,7 @@ class StdioException : Exception
|
|||
|
||||
/**
|
||||
Initialize with a message and an error code. */
|
||||
this(string message, uint e = .getErrno())
|
||||
this(string message, uint e = .errno)
|
||||
{
|
||||
errno = e;
|
||||
version (Posix)
|
||||
|
@ -2295,7 +2295,7 @@ Initialize with a message and an error code. */
|
|||
/// ditto
|
||||
static void opCall()
|
||||
{
|
||||
throw new StdioException(null, .getErrno());
|
||||
throw new StdioException(null, .errno);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue