mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge remote-tracking branch 'origin/maint-0.2.2'
(For bug 5969 fix)
This commit is contained in:
+3
-2
@@ -259,11 +259,12 @@ void tor_munmap_file(tor_mmap_t *handle) ATTR_NONNULL((1));
|
||||
int tor_snprintf(char *str, size_t size, const char *format, ...)
|
||||
CHECK_PRINTF(3,4) ATTR_NONNULL((1,3));
|
||||
int tor_vsnprintf(char *str, size_t size, const char *format, va_list args)
|
||||
ATTR_NONNULL((1,3));
|
||||
CHECK_PRINTF(3,0) ATTR_NONNULL((1,3));
|
||||
|
||||
int tor_asprintf(char **strp, const char *fmt, ...)
|
||||
CHECK_PRINTF(2,3);
|
||||
int tor_vasprintf(char **strp, const char *fmt, va_list args);
|
||||
int tor_vasprintf(char **strp, const char *fmt, va_list args)
|
||||
CHECK_PRINTF(2,0);
|
||||
|
||||
const void *tor_memmem(const void *haystack, size_t hlen, const void *needle,
|
||||
size_t nlen) ATTR_NONNULL((1,3));
|
||||
|
||||
@@ -137,6 +137,13 @@ static void close_log(logfile_t *victim);
|
||||
|
||||
static char *domain_to_string(log_domain_mask_t domain,
|
||||
char *buf, size_t buflen);
|
||||
static INLINE char *format_msg(char *buf, size_t buf_len,
|
||||
log_domain_mask_t domain, int severity, const char *funcname,
|
||||
const char *format, va_list ap, size_t *msg_len_out)
|
||||
CHECK_PRINTF(6,0);
|
||||
static void logv(int severity, log_domain_mask_t domain, const char *funcname,
|
||||
const char *format, va_list ap)
|
||||
CHECK_PRINTF(4,0);
|
||||
|
||||
/** Name of the application: used to generate the message we write at the
|
||||
* start of each new log. */
|
||||
|
||||
+5
-1
@@ -213,7 +213,11 @@ const char *escaped(const char *string);
|
||||
struct smartlist_t;
|
||||
void wrap_string(struct smartlist_t *out, const char *string, size_t width,
|
||||
const char *prefix0, const char *prefixRest);
|
||||
int tor_vsscanf(const char *buf, const char *pattern, va_list ap);
|
||||
int tor_vsscanf(const char *buf, const char *pattern, va_list ap)
|
||||
#ifdef __GNUC__
|
||||
__attribute__((format(scanf, 2, 0)))
|
||||
#endif
|
||||
;
|
||||
int tor_sscanf(const char *buf, const char *pattern, ...)
|
||||
#ifdef __GNUC__
|
||||
__attribute__((format(scanf, 2, 3)))
|
||||
|
||||
Reference in New Issue
Block a user