Get rid of compile warnings
authorMark Spencer <markster@digium.com>
Thu, 16 Sep 2004 18:45:34 +0000 (18:45 +0000)
committerMark Spencer <markster@digium.com>
Thu, 16 Sep 2004 18:45:34 +0000 (18:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3793 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index c2595f0..8faa928 100755 (executable)
@@ -3980,6 +3980,28 @@ static int transmit_notify_with_sipfrag(struct sip_pvt *p, int cseq)
        return send_request(p, &req, 1, p->ocseq);
 }
 
+static char *regstate2str(int regstate)
+{
+       switch(regstate) {
+       case REG_STATE_UNREGISTERED:
+               return "Unregistered";
+       case REG_STATE_REGSENT:
+               return "Request Sent";
+       case REG_STATE_AUTHSENT:
+               return "Auth. Sent";
+       case REG_STATE_REGISTERED:
+               return "Registered";
+       case REG_STATE_REJECTED:
+               return "Rejected";
+       case REG_STATE_TIMEOUT:
+               return "Timeout";
+       case REG_STATE_NOAUTH:
+               return "No Authentication";
+       default:
+               return "Unknown";
+       }
+}
+
 static int transmit_register(struct sip_registry *r, char *cmd, char *auth, char *authheader);
 
 /*--- sip_reregister: Update registration with SIP Proxy---*/
@@ -5677,28 +5699,6 @@ static int sip_show_peers(int fd, int argc, char *argv[])
 #undef FORMAT2
 }
 
-static char *regstate2str(int regstate)
-{
-       switch(regstate) {
-       case REG_STATE_UNREGISTERED:
-               return "Unregistered";
-       case REG_STATE_REGSENT:
-               return "Request Sent";
-       case REG_STATE_AUTHSENT:
-               return "Auth. Sent";
-       case REG_STATE_REGISTERED:
-               return "Registered";
-       case REG_STATE_REJECTED:
-               return "Rejected";
-       case REG_STATE_TIMEOUT:
-               return "Timeout";
-       case REG_STATE_NOAUTH:
-               return "No Authentication";
-       default:
-               return "Unknown";
-       }
-}
-
 /*--- print_group: Print call group and pickup group ---*/
 static void  print_group(int fd, unsigned int group) 
 {