Skip to content

Commit 72430e5

Browse files
committed
Mark some functions as cold
1 parent 1311275 commit 72430e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/lwan-request.c

+2
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,7 @@ body_data_finalizer(const struct lwan_value *buffer,
11071107
return FINALIZER_TRY_AGAIN;
11081108
}
11091109

1110+
__attribute__((cold))
11101111
static const char *is_dir_good_for_tmp(const char *v)
11111112
{
11121113
struct statfs sb;
@@ -1143,6 +1144,7 @@ static const char *is_dir_good_for_tmp(const char *v)
11431144
static const char *temp_dir;
11441145
static const size_t body_buffer_temp_file_thresh = 1<<20;
11451146

1147+
__attribute__((cold))
11461148
static const char *
11471149
get_temp_dir(void)
11481150
{

0 commit comments

Comments
 (0)