Skip to content

Commit

Permalink
[=] fix typo in prefix (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
chinsyo authored Oct 28, 2024
1 parent 7eb9430 commit 6dc0fea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/common/xqc_priority_q.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <string.h>
#include <stdint.h>
Expand Down Expand Up @@ -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_*/
5 changes: 3 additions & 2 deletions src/common/xqc_str.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 6dc0fea

Please sign in to comment.