rem: str_append(_h, subs_states[_s].s, subs_states[_s].len);
add: str_append(_h, s.s, s.len);
context: static inline int add_subs_state_hf(str* _h, int _l, subs_state_t _s, ss_reason_t _r, time_t _e){	char* num;	int len;	if (_l < SUBSCRIPTION_STATE_L + subs_states[_s].len + SS_EXPIRES_L + 	    SS_REASON_L + reason[_r].len + CRLF_L) {		paerrno = PA_SMALL_BUFFER;		LOG(L_ERR, "add_subs_state_hf(): Buffer too small\n");		return -1;	}	str_append(_h, SUBSCRIPTION_STATE, SUBSCRIPTION_STATE_L);	str_append(_h, subs_states[_s].s, subs_states[_s].len);		switch(_s) {	case SS_ACTIVE:		str_append(_h, SS_EXPIRES, SS_EXPIRES_L);		num = int2str((unsigned int)_e, &len);		str_append(_h, num, len);		break;	case SS_TERMINATED:		str_append(_h, SS_REASON, SS_REASON_L);		str_append(_h, reason[_r].s, reason[_r].len);		break;	case SS_PENDING:		break;	}	str_append(_h, CRLF, CRLF_L);	return 0;}