Преглед изворни кода

internal function for parsing Subscription-State was hidden (was accessible for to testing only)

Vaclav Kubart пре 19 година
родитељ
комит
254212959f
2 измењених фајлова са 1 додато и 4 уклоњено
  1. 1 1
      parser/parse_subscription_state.c
  2. 0 3
      parser/parse_subscription_state.h

+ 1 - 1
parser/parse_subscription_state.c

@@ -26,7 +26,7 @@ static inline int str_cmp(const str *a, const str *b)
 	return 0;
 }
 
-int ss_parse(str *src, subscription_state_t *ss)
+static int ss_parse(str *src, subscription_state_t *ss)
 {
 	static str active = STR_STATIC_INIT("active");
 	static str pending = STR_STATIC_INIT("pending");

+ 0 - 3
parser/parse_subscription_state.h

@@ -16,9 +16,6 @@ typedef struct _subscription_state_t {
 	int expires_set; /* expires is valid if nonzero here */
 } subscription_state_t;
 
-/* FIXME: temporary only */
-int ss_parse(str *src, subscription_state_t *ss);
-
 int parse_subscription_state(struct hdr_field *h);
 
 void free_subscription_state(subscription_state_t **ss);