add: return proto; default: LOG(L_ERR, "ERROR: get_proto: unsupported transport:" " %d\n", proto ); return PROTO_NONE; } case PROTO_UDP:  #ifdef USE_TCP case PROTO_TCP:
context: inline static enum sip_protos get_proto(enum sip_protos force_proto,       struct sip_uri *u){       /* calculate transport protocol */       switch(force_proto) {               case PROTO_NONE:        /* no protocol has been forced -- look at uri */                       switch(u->proto) {                               case PROTO_NONE: /* uri default to UDP */                                       return PROTO_UDP;                               case PROTO_UDP: /* transport specified explicitely */#ifdef USE_TCP                               case PROTO_TCP:#endif#ifdef USE_TLS                               case PROTO_TLS:#endif                                       return u->proto;                               default:                                       LOG(L_ERR, "ERROR: get_proto: unsupported transport: %d\n",                                               u->proto );                                       return PROTO_NONE;                       }               case PROTO_UDP: /* some protocol has been forced -- take it */#ifdef USE_TCP               case PROTO_TCP:#endif#ifdef USE_TLS               case PROTO_TLS:#endif                       return force_proto;               default:                       LOG(L_ERR, "ERROR: get_proto: unsupported forced protocol: "                               "%d\n", force_proto);                       return PROTO_NONE;       }}