diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-06 14:34:00 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-08 13:11:50 +0000 |
commit | a4dddfd5f121c9cc74e05e08a568c6a9febfd56f (patch) | |
tree | 5cb718582a9c9fc4d79a4a0833f3a4c8027cb821 /include/sockets.h | |
parent | 7ddc865cdeb0be9eb929cbbefae1c92009683291 (diff) |
Mark format strings with the GNU printf attribute.
Diffstat (limited to 'include/sockets.h')
-rw-r--r-- | include/sockets.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sockets.h b/include/sockets.h index 3df3fce71..d90a52f91 100644 --- a/include/sockets.h +++ b/include/sockets.h @@ -319,7 +319,7 @@ public: protected: virtual void Write(const char *buffer, size_t l); public: - void Write(const char *message, ...); + void Write(const char *message, ...) ATTR_FORMAT(2, 3); void Write(const Anope::string &message); /** Get the length of the read buffer @@ -367,7 +367,7 @@ public: * @param l The length of the data; if 0 then this function returns without doing anything */ virtual void Write(const char *buffer, size_t l); - void Write(const char *message, ...); + void Write(const char *message, ...) ATTR_FORMAT(2, 3); void Write(const Anope::string &message); /** Called with data from the socket |