Skip to content

Commit 5ac2320

Browse files
[libc][NFC] Fix extraneous namespace on Errno (llvm#80894)
The Errno type doesn't need to be explicitly namespaced now that it's enclosed in a namespace.
1 parent f2508d0 commit 5ac2320

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libc/src/errno/libc_errno.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ LIBC_NAMESPACE::Errno::operator int() { return errno; }
4646

4747
namespace LIBC_NAMESPACE {
4848
// Define the global `libc_errno` instance.
49-
LIBC_NAMESPACE::Errno libc_errno;
49+
Errno libc_errno;
5050
} // namespace LIBC_NAMESPACE

libc/src/errno/libc_errno.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ struct Errno {
4040
operator int();
4141
};
4242

43-
extern LIBC_NAMESPACE::Errno libc_errno;
43+
extern Errno libc_errno;
4444

4545
} // namespace LIBC_NAMESPACE
4646

0 commit comments

Comments
 (0)