@dilyanpalauzov commented on this pull request.


> @@ -1833,6 +1847,23 @@ ip_addr_t *str2ip(str *st)
        return ipb;
 }
 
+struct hostent *__resolvehost(char *name)
+{
+       if(dns_cache_init) {
+               return dns_resolvehost(name);
+       } else {
+               return _resolvehost(name);
+       }
+}
+
+struct hostent *__sip_resolvehost(str *name, unsigned short *port, char *proto)
+{
+       if(dns_cache_init) {
+               return dns_sip_resolvehost(name, port, proto);
+       } else {

This `else` can be skipped:
```c
if (x) return y;
/*skipped else*/ return z;
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3858#pullrequestreview-2091493759
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/3858/review/2091493...@github.com>
_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to