diff --git a/src/common/xqc_priority_q.h b/src/common/xqc_priority_q.h index ff223474..5c8d0f26 100644 --- a/src/common/xqc_priority_q.h +++ b/src/common/xqc_priority_q.h @@ -2,8 +2,8 @@ * @copyright Copyright (c) 2022, Alibaba Group Holding Limited */ -#ifndef _NGX_H_PRIORITY_Q_INCLUDED_ -#define _NGX_H_PRIORITY_Q_INCLUDED_ +#ifndef _XQC_H_PRIORITY_Q_INCLUDED_ +#define _XQC_H_PRIORITY_Q_INCLUDED_ #include #include @@ -186,4 +186,4 @@ xqc_pq_pop(xqc_pq_t *pq) #undef xqc_pq_element #undef xqc_pq_element_copy -#endif /*_NGX_H_PRIORITY_Q_INCLUDED_*/ +#endif /*_XQC_H_PRIORITY_Q_INCLUDED_*/ diff --git a/src/common/xqc_str.c b/src/common/xqc_str.c index fa0da576..aa7f25b1 100644 --- a/src/common/xqc_str.c +++ b/src/common/xqc_str.c @@ -281,11 +281,12 @@ xqc_vsprintf(unsigned char *buf, unsigned char *last, const char *fmt, va_list a unsigned char * xqc_sprintf_num(unsigned char *buf, unsigned char *last, uint64_t ui64, unsigned char zero, uintptr_t hexadecimal, uintptr_t width) { - unsigned char *p, temp[XQC_INT64_LEN + 1]; /* - * we need temp[NGX_INT64_LEN] only, + * we need temp[XQC_INT64_LEN] only, * but icc issues the warning */ + unsigned char *p, temp[XQC_INT64_LEN + 1]; + size_t len; uint32_t ui32; static const unsigned char hex[] = "0123456789abcdef";