]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
sig_pri.h: force_restart_unavailable_chans in wrong scope 23/923/2
authorPatric Marschall <patric.marschall@1und1.de>
Fri, 17 Jul 2015 09:59:19 +0000 (11:59 +0200)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 17 Jul 2015 16:01:08 +0000 (11:01 -0500)
In channels/sig_pri.h, struct sig_pri_span, the field
force_restart_unavailable_chans is only defined if

#if defined(HAVE_PRI_MCID) is true.

All other occurences of force_restart_unavailable_chans are outside of the

#if defined(HAVE_PRI_MCID)
endif

scope.

ASTERISK-25257 #close
Reported by: Patric Marschall

Change-Id: I071de89cc2cd0d85927a013036e235851f672549

channels/sig_pri.h

index 8debbc5b7f345d39a5deafe311595d833e39c6ed..1a95b6ea31cfb815ad05dbc79d1df8682fe694c9 100644 (file)
@@ -481,9 +481,9 @@ struct sig_pri_span {
 #if defined(HAVE_PRI_MCID)
        /*! \brief TRUE if allow sending MCID request on this span. */
        unsigned int mcid_send:1;
+#endif /* defined(HAVE_PRI_MCID) */
        /*! \brief TRUE if forcing RESTART when receive cause 44 on this span. */
        unsigned int force_restart_unavailable_chans:1;
-#endif /* defined(HAVE_PRI_MCID) */
 #if defined(HAVE_PRI_DATETIME_SEND)
        /*! \brief Configured date/time ie send policy option. */
        int datetime_send;