Skip to content

Commit

Permalink
res: ubr: remove extra underscore in _KEY_PART_START
Browse files Browse the repository at this point in the history
  • Loading branch information
prajnoha committed Jul 25, 2024
1 parent 519899b commit 19552fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/include/log/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void sid_log_change_tgt(sid_log_t *log, sid_log_tgt_t new_target);
void sid_log_set_pfx(sid_log_t *log, const char *prefix);

__attribute__((format(printf, 3, 4))) void sid_log_output(sid_log_t *log, sid_log_req_t *req, const char *format, ...);
void sid_log_voutput(sid_log_t *log, sid_log_req_t *req, const char *format, va_list ap);
void sid_log_voutput(sid_log_t *log, sid_log_req_t *req, const char *format, va_list ap);

#define SID_LOG_PRINT LOG_LOCAL0

Expand Down
4 changes: 2 additions & 2 deletions src/resource/ubridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ struct kv_delta {
};

typedef enum {
__KEY_PART_START = 0x0,
_KEY_PART_START = 0x0,
KEY_PART_OP = 0x0,
KEY_PART_DOM = 0x1,
KEY_PART_NS = 0x2,
Expand Down Expand Up @@ -660,7 +660,7 @@ static const char *_get_key_part(const char *key, key_part_t req_part, size_t *l
key_part_t part;
const char *start = key, *end;

for (part = __KEY_PART_START; part < req_part; part++) {
for (part = _KEY_PART_START; part < req_part; part++) {
if (!(start = strstr(start, SID_KVS_KEY_JOIN)))
return NULL;
start++;
Expand Down

0 comments on commit 19552fe

Please sign in to comment.