IPAddressFormatException& operator=(IPAddressFormatException&&) = default;
~IPAddressFormatException() noexcept override {}
- const char* what(void) const noexcept override {
+ const char* what() const noexcept override {
return msg_.c_str();
}
#endif
}
- static void preFork(void) {
+ static void preFork() {
instance().lock_.lock(); // Make sure it's created
}
- static void onForkParent(void) { instance().lock_.unlock(); }
+ static void onForkParent() {
+ instance().lock_.unlock();
+ }
- static void onForkChild(void) {
+ static void onForkChild() {
// only the current thread survives
instance().head_.next = instance().head_.prev = &instance().head_;
ThreadEntry* threadEntry = getThreadEntry();
threadFactory_ = std::move(threadFactory);
}
- std::shared_ptr<ThreadFactory> getThreadFactory(void) {
+ std::shared_ptr<ThreadFactory> getThreadFactory() {
return threadFactory_;
}
extern "C" {
StackTraceStack* getExceptionStackTraceStack(void) __attribute__((__weak__));
-typedef StackTraceStack* (*GetExceptionStackTraceStackType)(void);
+typedef StackTraceStack* (*GetExceptionStackTraceStackType)();
GetExceptionStackTraceStackType getExceptionStackTraceStackFn;
}
*/
void dummyCxaThrow(void*, std::type_info*, void (*)(void*)) noexcept;
void dummyCxaBeginCatch(void*) noexcept;
-void dummyCxaRethrow(void) noexcept;
-void dummyCxaEndCatch(void) noexcept;
+void dummyCxaRethrow() noexcept;
+void dummyCxaEndCatch() noexcept;
void dummyRethrowException(std::exception_ptr) noexcept;
}
* All these fatal callback must be added before calling
* installFatalSignalCallbacks(), below.
*/
-typedef void (*SignalCallback)(void);
+typedef void (*SignalCallback)();
void addFatalSignalCallback(SignalCallback callback);
/**
return instance;
}
-void* initsslBioMethod(void) {
+void* initsslBioMethod() {
auto sslBioMethod = getSSLBioMethod();
// override the bwrite method for MSG_EOR support
OpenSSLUtils::setCustomBioWriteMethod(sslBioMethod, AsyncSSLSocket::bioWrite);
// OPENSSL_VERSION_NUMBER is insufficient as runtime version may be different
// from the compile-time version
struct OpenSSLVersionFinder {
- static std::string getOpenSSLLongVersion(void) {
+ static std::string getOpenSSLLongVersion() {
#ifdef OPENSSL_VERSION_TEXT
return SSLeay_version(SSLEAY_VERSION);
#elif defined(OPENSSL_VERSION_NUMBER)
#endif
}
- uint64_t getOpenSSLNumericVersion(void) {
+ uint64_t getOpenSSLNumericVersion() {
#ifdef OPENSSL_VERSION_NUMBER
return SSLeay();
#else
downRef();
}
-std::string SSLSessionImpl::serialize(void) const {
+std::string SSLSessionImpl::serialize() const {
std::string ret;
// Get the length first, then we know how much space to allocate.
class Exception : public std::exception {
public:
explicit Exception(const std::string& value) : value_(value) {}
- ~Exception(void) noexcept override {}
+ ~Exception() noexcept override {}
- const char* what(void) const noexcept override { return value_.c_str(); }
+ const char* what() const noexcept override {
+ return value_.c_str();
+ }
private:
std::string value_;