mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
refactor: tr_torrent housekeeping (#2319)
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
#include "error.h"
|
||||
#include "tr-assert.h"
|
||||
#include "tr-macros.h"
|
||||
#include "utils.h"
|
||||
|
||||
tr_error* tr_error_new_literal(int code, char const* message)
|
||||
@@ -25,6 +26,8 @@ tr_error* tr_error_new_literal(int code, char const* message)
|
||||
return error;
|
||||
}
|
||||
|
||||
static tr_error* tr_error_new_valist(int code, char const* message_format, va_list args) TR_GNUC_PRINTF(2, 0);
|
||||
|
||||
static tr_error* tr_error_new_valist(int code, char const* message_format, va_list args)
|
||||
{
|
||||
TR_ASSERT(message_format != nullptr);
|
||||
|
||||
Reference in New Issue
Block a user