<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[129886] trunk/dports/mail/alpine</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/129886">129886</a></dd>
<dt>Author</dt> <dd>cal@macports.org</dd>
<dt>Date</dt> <dd>2014-12-22 06:11:30 -0800 (Mon, 22 Dec 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>alpine: Fix build failure on Yosemite due to name conflict on &quot;panic&quot;, closes #44634</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsmailalpinePortfile">trunk/dports/mail/alpine/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdportsmailalpinefilesalpine200_panic_renamepatch">trunk/dports/mail/alpine/files/alpine-2.00_panic_rename.patch</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsmailalpinePortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/mail/alpine/Portfile (129885 => 129886)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/mail/alpine/Portfile        2014-12-22 13:43:46 UTC (rev 129885)
+++ trunk/dports/mail/alpine/Portfile        2014-12-22 14:11:30 UTC (rev 129886)
</span><span class="lines">@@ -24,7 +24,8 @@
</span><span class="cx"> 
</span><span class="cx"> patchfiles          patch-Makefile.in.diff \
</span><span class="cx">                     patch-configure.diff \
</span><del>-                    patch-imap_Makefile.diff
</del><ins>+                    patch-imap_Makefile.diff \
+                    alpine-2.00_panic_rename.patch
</ins><span class="cx"> patch.pre_args      -p1
</span><span class="cx"> if {${os.platform} eq &quot;darwin&quot; &amp;&amp; ${os.major} &gt;= 10} {
</span><span class="cx">     patchfiles-append   alpine-osx-10.6.patch
</span></span></pre></div>
<a id="trunkdportsmailalpinefilesalpine200_panic_renamepatch"></a>
<div class="addfile"><h4>Added: trunk/dports/mail/alpine/files/alpine-2.00_panic_rename.patch (0 => 129886)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/mail/alpine/files/alpine-2.00_panic_rename.patch                                (rev 0)
+++ trunk/dports/mail/alpine/files/alpine-2.00_panic_rename.patch        2014-12-22 14:11:30 UTC (rev 129886)
</span><span class="lines">@@ -0,0 +1,658 @@
</span><ins>+diff -urN alpine-2.00-patched/alpine/adrbkcmd.c alpine-2.00/alpine/adrbkcmd.c
+--- alpine-2.00-patched/alpine/adrbkcmd.c        2014-09-30 23:25:06.000000000 -0700
++++ alpine-2.00/alpine/adrbkcmd.c        2014-09-21 02:41:20.000000000 -0700
+@@ -527,7 +527,7 @@
+         break;

+       default:
+-        panic(&quot;Unexpected command in process_abook_view_cmd&quot;);
++        uw_panic(&quot;Unexpected command in process_abook_view_cmd&quot;);
+         break;
+     }

+@@ -2634,7 +2634,7 @@
+     }

+     if(!ps-&gt;prc)
+-      panic(&quot;NULL prc in convert_to_remote_config&quot;);
++      uw_panic(&quot;NULL prc in convert_to_remote_config&quot;);

+     dprint((2, &quot;convert_to_remote_config\n&quot;));
+     
+@@ -5011,7 +5011,7 @@
+             break;
+           
+           default:
+-            panic(&quot;can't happen in write_single_vcard_entry&quot;);
++            uw_panic(&quot;can't happen in write_single_vcard_entry&quot;);
+         }

+         for(; ll &amp;&amp; *ll; ll++){
+@@ -5144,7 +5144,7 @@
+             break;

+           default:
+-            panic(&quot;can't happen in write_single_tab_entry&quot;);
++            uw_panic(&quot;can't happen in write_single_tab_entry&quot;);
+         }

+         if(i)
+@@ -7366,7 +7366,7 @@
+         break;

+       default:
+-        panic(&quot;Unexpected command in process_ldap_cmd&quot;);
++        uw_panic(&quot;Unexpected command in process_ldap_cmd&quot;);
+         break;
+     }

+diff -urN alpine-2.00-patched/alpine/alpine.c alpine-2.00/alpine/alpine.c
+--- alpine-2.00-patched/alpine/alpine.c        2014-09-30 23:25:06.000000000 -0700
++++ alpine-2.00/alpine/alpine.c        2014-09-21 02:41:20.000000000 -0700
+@@ -2321,7 +2321,7 @@
+         break;

+       default:
+-        panic(&quot;Unexpected command in choose_setup_cmd&quot;);
++        uw_panic(&quot;Unexpected command in choose_setup_cmd&quot;);
+         break;
+     }

+@@ -3317,7 +3317,7 @@
+   This is also called from imap routines and fs_get and fs_resize.
+   ----*/
+ void
+-panic(char *message)
++uw_panic(char *message)
+ {
+     char buf[256];

+diff -urN alpine-2.00-patched/alpine/confscroll.c alpine-2.00/alpine/confscroll.c
+--- alpine-2.00-patched/alpine/confscroll.c        2014-09-30 23:25:06.000000000 -0700
++++ alpine-2.00/alpine/confscroll.c        2014-09-21 02:41:20.000000000 -0700
+@@ -5236,7 +5236,7 @@
+         }
+         else{
+             if(reset_character_set_stuff(&amp;err) == -1)
+-              panic(err ? err : &quot;trouble with Character-Set&quot;);
++              uw_panic(err ? err : &quot;trouble with Character-Set&quot;);
+             else if(err){
+                 q_status_message(SM_ORDER | SM_DING, 3, 5, err);
+                 fs_give((void **) &amp;err);
+@@ -5252,7 +5252,7 @@
+         }
+         else{
+             if(reset_character_set_stuff(&amp;err) == -1)
+-              panic(err ? err : &quot;trouble with Character-Set&quot;);
++              uw_panic(err ? err : &quot;trouble with Character-Set&quot;);
+             else if(err){
+                 q_status_message(SM_ORDER | SM_DING, 3, 5, err);
+                 fs_give((void **) &amp;err);
+diff -urN alpine-2.00-patched/alpine/folder.c alpine-2.00/alpine/folder.c
+--- alpine-2.00-patched/alpine/folder.c        2014-09-30 23:25:07.000000000 -0700
++++ alpine-2.00/alpine/folder.c        2014-09-21 02:41:20.000000000 -0700
+@@ -1014,7 +1014,7 @@
+                   strncat(servpart, &quot;#news.&quot;, sizeof(servpart)-1-strlen(servpart));
+             }
+             else
+-              panic(&quot;Unexpected invalid server&quot;);
++              uw_panic(&quot;Unexpected invalid server&quot;);
+         }
+         else
+           servpart[0] = '\0';
+diff -urN alpine-2.00-patched/alpine/help.c alpine-2.00/alpine/help.c
+--- alpine-2.00-patched/alpine/help.c        2014-09-30 23:25:07.000000000 -0700
++++ alpine-2.00/alpine/help.c        2014-09-21 02:41:21.000000000 -0700
+@@ -412,7 +412,7 @@
+         break;

+       default :
+-        panic(&quot;Unhandled case&quot;);
++        uw_panic(&quot;Unhandled case&quot;);
+     }

+     return(rv);
+@@ -878,7 +878,7 @@
+         break;

+       default:
+-        panic(&quot;Unexpected command in journal_processor&quot;);
++        uw_panic(&quot;Unexpected command in journal_processor&quot;);
+         break;
+     }
+     
+diff -urN alpine-2.00-patched/alpine/mailcmd.c alpine-2.00/alpine/mailcmd.c
+--- alpine-2.00-patched/alpine/mailcmd.c        2014-09-30 23:25:07.000000000 -0700
++++ alpine-2.00/alpine/mailcmd.c        2014-09-21 02:41:22.000000000 -0700
+@@ -1464,7 +1464,7 @@

+           /*--------- Default, unknown command ----------*/
+       default:
+-        panic(&quot;Unexpected command case&quot;);
++        uw_panic(&quot;Unexpected command case&quot;);
+         break;
+     }

+@@ -2657,7 +2657,7 @@
+     ESCKEY_S              ekey[10];

+     if(!cntxt)
+-      panic(&quot;no context ptr in save_prompt&quot;);
++      uw_panic(&quot;no context ptr in save_prompt&quot;);

+     init_hist(&amp;history, HISTSIZE);

+@@ -3040,7 +3040,7 @@
+             break;

+           default :
+-            panic(&quot;Unhandled case&quot;);
++            uw_panic(&quot;Unhandled case&quot;);
+             break;
+         }

+@@ -5665,7 +5665,7 @@
+             break;

+           default :
+-            panic(&quot;Unhandled case&quot;);
++            uw_panic(&quot;Unhandled case&quot;);
+             break;
+         }

+diff -urN alpine-2.00-patched/alpine/mailview.c alpine-2.00/alpine/mailview.c
+--- alpine-2.00-patched/alpine/mailview.c        2014-09-30 23:25:07.000000000 -0700
++++ alpine-2.00/alpine/mailview.c        2014-09-21 02:41:21.000000000 -0700
+@@ -982,7 +982,7 @@


+       default :
+-        panic(&quot;Unexpected HANDLE type&quot;);
++        uw_panic(&quot;Unexpected HANDLE type&quot;);
+     }

+     return(0);
+@@ -1085,7 +1085,7 @@
+         }

+         if(l == start_line)
+-          panic(&quot;Internal Error: no handle found&quot;);
++          uw_panic(&quot;Internal Error: no handle found&quot;);
+         else
+           start_line = l;
+     }
+diff -urN alpine-2.00-patched/alpine/radio.c alpine-2.00/alpine/radio.c
+--- alpine-2.00-patched/alpine/radio.c        2014-09-30 23:25:06.000000000 -0700
++++ alpine-2.00/alpine/radio.c        2014-09-21 02:41:20.000000000 -0700
+@@ -279,7 +279,7 @@

+         if(flags &amp; RB_RET_HELP){
+             if(help_text != NO_HELP)
+-              panic(&quot;RET_HELP and help in radio_buttons!&quot;);
++              uw_panic(&quot;RET_HELP and help in radio_buttons!&quot;);

+             button_list[b].ch = '?';
+             button_list[b].rval = 3;
+@@ -359,7 +359,7 @@
+     clrbitmap(bitmap);
+     memset(fkey_table, NO_OP_COMMAND, 12 * sizeof(int));
+     if(flags &amp; RB_RET_HELP &amp;&amp; help_text != NO_HELP)
+-      panic(&quot;RET_HELP and help in radio_buttons!&quot;);
++      uw_panic(&quot;RET_HELP and help in radio_buttons!&quot;);

+     /* if shown, always at position 0 */
+     if(help_text != NO_HELP || flags &amp; RB_RET_HELP){
+@@ -397,7 +397,7 @@
+                &amp;&amp; esc_list[i-start].label[0] != '\0'){  /* visible */
+                 if(i == 12){  /* special case where we put it in help slot */
+                     if(help_text != NO_HELP)
+-                  panic(&quot;Programming botch in radio_buttons(): too many keys&quot;);
++                  uw_panic(&quot;Programming botch in radio_buttons(): too many keys&quot;);

+                     if(esc_list[i-start].ch != -2)
+                       setbitn(0, bitmap); /* the help slot */
+@@ -419,7 +419,7 @@
+                       rb_keymenu.keys[0].label = esc_list[i-start].label;
+                 }
+                 else
+-                  panic(&quot;Botch in radio_buttons(): too many keys&quot;);
++                  uw_panic(&quot;Botch in radio_buttons(): too many keys&quot;);
+             }
+         }
+         else{
+@@ -822,16 +822,16 @@
+      */
+     for(i=0; list1 &amp;&amp; list1[i].ch != -1; i++){
+         if(list1[i].rval == list[j].rval)
+-          panic(&quot;1bad rval in d_r&quot;);
++          uw_panic(&quot;1bad rval in d_r&quot;);
+         if(F_OFF(F_USE_FK,ps_global) &amp;&amp; list1[i].ch == list[j].ch)
+-          panic(&quot;1bad ch in ccl&quot;);
++          uw_panic(&quot;1bad ch in ccl&quot;);
+     }

+     for(i=0; list2 &amp;&amp; list2[i].ch != -1; i++){
+         if(list2[i].rval == list[j].rval)
+-          panic(&quot;2bad rval in d_r&quot;);
++          uw_panic(&quot;2bad rval in d_r&quot;);
+         if(F_OFF(F_USE_FK,ps_global) &amp;&amp; list2[i].ch == list[j].ch)
+-          panic(&quot;2bad ch in ccl&quot;);
++          uw_panic(&quot;2bad ch in ccl&quot;);
+     }

+     j++;
+@@ -839,7 +839,7 @@
+     /* the visible set */
+     for(i=0; list1 &amp;&amp; list1[i].ch != -1; i++){
+         if(i &gt;= KEYS_PER_LIST &amp;&amp; list1[i].label[0] != '\0')
+-          panic(&quot;too many visible keys in ccl&quot;);
++          uw_panic(&quot;too many visible keys in ccl&quot;);

+         list[j++] = list1[i];
+     }
+diff -urN alpine-2.00-patched/alpine/roleconf.c alpine-2.00/alpine/roleconf.c
+--- alpine-2.00-patched/alpine/roleconf.c        2014-09-30 23:25:07.000000000 -0700
++++ alpine-2.00/alpine/roleconf.c        2014-09-21 02:41:22.000000000 -0700
+@@ -5929,7 +5929,7 @@
+     char ***alval;

+     if(!(v &amp;&amp; name))
+-      panic(&quot;setup_dummy_pattern_var&quot;);
++      uw_panic(&quot;setup_dummy_pattern_var&quot;);

+     v-&gt;name = (char *) fs_get(strlen(name)+NOTLEN+1);
+     snprintf(v-&gt;name, strlen(name)+NOTLEN+1, &quot;%s%s&quot;, (defpat &amp;&amp; defpat-&gt;not) ? NOT : &quot;&quot;, name);
+diff -urN alpine-2.00-patched/alpine/signal.c alpine-2.00/alpine/signal.c
+--- alpine-2.00-patched/alpine/signal.c        2014-09-30 23:25:07.000000000 -0700
++++ alpine-2.00/alpine/signal.c        2014-09-21 02:41:22.000000000 -0700
+@@ -174,7 +174,7 @@
+ /*----------------------------------------------------------------------
+      Handle signals caused by aborts -- SIGSEGV, SIGILL, etc

+-Call panic which cleans up tty modes and then core dumps
++Call uw_panic which cleans up tty modes and then core dumps
+   ----------------------------------------------------------------------*/
+ static RETSIGTYPE
+ auger_in_signal(int sig)
+@@ -187,9 +187,9 @@
+     snprintf(buf, sizeof(buf), &quot;Received abort signal(sig=%d)&quot;, sig);
+     buf[sizeof(buf)-1] = '\0';

+-    panic(buf);                                /* clean up and get out */
++    uw_panic(buf);                                /* clean up and get out */

+-    exit(-1);                                /* in case panic doesn't kill us */
++    exit(-1);                                /* in case uw_panic doesn't kill us */
+ }


+diff -urN alpine-2.00-patched/pith/adrbklib.c alpine-2.00/pith/adrbklib.c
+--- alpine-2.00-patched/pith/adrbklib.c        2014-09-30 23:25:10.000000000 -0700
++++ alpine-2.00/pith/adrbklib.c        2014-09-21 02:41:32.000000000 -0700
+@@ -4326,7 +4326,7 @@

+     nn = (adrbk_cntr_t)n;
+     if(!exp_head)
+-      panic(&quot;exp_head not set in exp_set_expanded&quot;);
++      uw_panic(&quot;exp_head not set in exp_set_expanded&quot;);

+     for(e = exp_head; e-&gt;next; e = e-&gt;next)
+       if(e-&gt;next-&gt;ent &gt;= nn)
+@@ -4358,7 +4358,7 @@

+     nn = (adrbk_cntr_t)n;
+     if(!exp_head)
+-      panic(&quot;exp_head not set in exp_unset_expanded&quot;);
++      uw_panic(&quot;exp_head not set in exp_unset_expanded&quot;);

+     for(e = exp_head; e-&gt;next; e = e-&gt;next)
+       if(e-&gt;next-&gt;ent &gt;= nn)
+@@ -4390,7 +4390,7 @@

+     nn = (adrbk_cntr_t)n;
+     if(!exp_head)
+-      panic(&quot;exp_head not set in exp_del_nth&quot;);
++      uw_panic(&quot;exp_head not set in exp_del_nth&quot;);

+     e = exp_head-&gt;next;
+     while(e &amp;&amp; e-&gt;ent &lt; nn)
+@@ -4430,7 +4430,7 @@

+     nn = (adrbk_cntr_t)n;
+     if(!exp_head)
+-      panic(&quot;exp_head not set in exp_add_nth&quot;);
++      uw_panic(&quot;exp_head not set in exp_add_nth&quot;);

+     e = exp_head-&gt;next;
+     while(e &amp;&amp; e-&gt;ent &lt; nn)
+diff -urN alpine-2.00-patched/pith/charset.c alpine-2.00/pith/charset.c
+--- alpine-2.00-patched/pith/charset.c        2014-09-30 23:25:10.000000000 -0700
++++ alpine-2.00/pith/charset.c        2014-09-21 02:41:32.000000000 -0700
+@@ -428,7 +428,7 @@
+             if(utf8_charset(cset)){
+                 if(!utf8_text(&amp;src, cset, &amp;xsrc, 0L)){
+                     /* should not happen */
+-                    panic(&quot;c-client failed to transliterate recognized characterset&quot;);
++                    uw_panic(&quot;c-client failed to transliterate recognized characterset&quot;);
+                 }
+             }
+             else{
+@@ -455,7 +455,7 @@
+             if(!(cs-&gt;type == CT_ASCII || cs-&gt;type == CT_UTF8)){
+                 if(!utf8_text_cs(&amp;src, cs, &amp;xsrc, 0L, 0L)){
+                     /* should not happen */
+-                    panic(&quot;c-client failed to transliterate recognized characterset&quot;);
++                    uw_panic(&quot;c-client failed to transliterate recognized characterset&quot;);
+                 }
+             }
+         }
+@@ -465,7 +465,7 @@
+                 &amp;&amp; utf8_charset(cset)){
+                 if(!utf8_text(&amp;src, cset, &amp;xsrc, 0L)){
+                     /* should not happen */
+-                    panic(&quot;c-client failed to transliterate recognized character set&quot;);
++                    uw_panic(&quot;c-client failed to transliterate recognized character set&quot;);
+                 }
+         }
+         else{
+diff -urN alpine-2.00-patched/pith/conf.c alpine-2.00/pith/conf.c
+--- alpine-2.00-patched/pith/conf.c        2014-09-30 23:25:10.000000000 -0700
++++ alpine-2.00/pith/conf.c        2014-09-21 02:41:32.000000000 -0700
+@@ -1798,7 +1798,7 @@
+      */

+     if(reset_character_set_stuff(&amp;err) == -1)
+-      panic(err ? err : &quot;trouble with character set setup&quot;);
++      uw_panic(err ? err : &quot;trouble with character set setup&quot;);
+     else if(err){
+         init_error(ps, SM_ORDER | SM_DING, 3, 5, err);
+         fs_give((void **) &amp;err);
+@@ -2583,7 +2583,7 @@
+               case 4: valptr = v-&gt;global_val.l; break;
+               case 5: valptr = v-&gt;fixed_val.l; break;
+               case 6: valptr = v-&gt;cmdline_val.l; break;
+-              default: panic(&quot;bad case in convert_configvar&quot;);
++              default: uw_panic(&quot;bad case in convert_configvar&quot;);
+             }

+             if(valptr){
+@@ -2609,7 +2609,7 @@
+               case 4: valptr = &amp;v-&gt;global_val.p; break;
+               case 5: valptr = &amp;v-&gt;fixed_val.p; break;
+               case 6: valptr = &amp;v-&gt;cmdline_val.p; break;
+-              default: panic(&quot;bad case in convert_configvar&quot;);
++              default: uw_panic(&quot;bad case in convert_configvar&quot;);
+             }

+             if(valptr &amp;&amp; *valptr &amp;&amp; (*valptr)[0]){
+@@ -7435,7 +7435,7 @@

+     snprintf(buf1, sizeof(buf1), &quot;%.*s&quot;, MAX(sizeof(buf1) - 1 - strlen(message), 0), arg);
+     snprintf(buf2, sizeof(buf2), message, buf1);
+-    panic(buf2);
++    uw_panic(buf2);
+ }


+diff -urN alpine-2.00-patched/pith/filter.c alpine-2.00/pith/filter.c
+--- alpine-2.00-patched/pith/filter.c        2014-09-30 23:25:09.000000000 -0700
++++ alpine-2.00/pith/filter.c        2014-09-21 02:41:31.000000000 -0700
+@@ -363,10 +363,10 @@
+             fs_give((void **) &amp;sp);
+         }
+         else
+-          panic(&quot;Programmer botch: Can't unstack store readc&quot;);
++          uw_panic(&quot;Programmer botch: Can't unstack store readc&quot;);
+     }
+     else
+-      panic(&quot;Programmer botch: NULL store clearing store readc&quot;);
++      uw_panic(&quot;Programmer botch: NULL store clearing store readc&quot;);
+ }


+@@ -397,10 +397,10 @@
+             fs_give((void **) &amp;sp);
+         }
+         else
+-          panic(&quot;Programmer botch: Can't unstack store writec&quot;);
++          uw_panic(&quot;Programmer botch: Can't unstack store writec&quot;);
+     }
+     else
+-      panic(&quot;Programmer botch: NULL store clearing store writec&quot;);
++      uw_panic(&quot;Programmer botch: NULL store clearing store writec&quot;);
+ }


+diff -urN alpine-2.00-patched/pith/folder.c alpine-2.00/pith/folder.c
+--- alpine-2.00-patched/pith/folder.c        2014-09-30 23:25:10.000000000 -0700
++++ alpine-2.00/pith/folder.c        2014-09-21 02:41:31.000000000 -0700
+@@ -586,7 +586,7 @@
+      * collection???
+      */
+     if(!prime)
+-      panic(_(&quot;No folder collections defined&quot;));
++      uw_panic(_(&quot;No folder collections defined&quot;));

+     /*
+      * At this point, insert the INBOX mapping as the leading
+diff -urN alpine-2.00-patched/pith/imap.c alpine-2.00/pith/imap.c
+--- alpine-2.00-patched/pith/imap.c        2014-09-30 23:25:10.000000000 -0700
++++ alpine-2.00/pith/imap.c        2014-09-21 02:41:32.000000000 -0700
+@@ -642,7 +642,7 @@
+ void
+ mm_fatal(char *message)
+ {
+-    panic(message);
++    uw_panic(message);
+ }


+diff -urN alpine-2.00-patched/pith/ldap.c alpine-2.00/pith/ldap.c
+--- alpine-2.00-patched/pith/ldap.c        2014-09-30 23:25:09.000000000 -0700
++++ alpine-2.00/pith/ldap.c        2014-09-21 02:41:30.000000000 -0700
+@@ -1700,7 +1700,7 @@
+         break;
+     
+       default:
+-        panic(&quot;LDAP function not implemented&quot;);
++        uw_panic(&quot;LDAP function not implemented&quot;);
+     }
+ #endif

+diff -urN alpine-2.00-patched/pith/mailcap.c alpine-2.00/pith/mailcap.c
+--- alpine-2.00-patched/pith/mailcap.c        2014-09-30 23:25:10.000000000 -0700
++++ alpine-2.00/pith/mailcap.c        2014-09-21 02:41:32.000000000 -0700
+@@ -247,7 +247,7 @@
+         return;

+       default:
+-        panic(&quot;Programmer botch in mc_process_file&quot;);
++        uw_panic(&quot;Programmer botch in mc_process_file&quot;);
+         /*NOTREACHED*/
+     }

+diff -urN alpine-2.00-patched/pith/mailcmd.c alpine-2.00/pith/mailcmd.c
+--- alpine-2.00-patched/pith/mailcmd.c        2014-09-30 23:25:10.000000000 -0700
++++ alpine-2.00/pith/mailcmd.c        2014-09-21 02:41:32.000000000 -0700
+@@ -1228,7 +1228,7 @@
+                 break;

+               default:
+-                panic(&quot;Unexpected incoming startup case&quot;);
++                uw_panic(&quot;Unexpected incoming startup case&quot;);
+                 break;

+             }
+diff -urN alpine-2.00-patched/pith/mailindx.c alpine-2.00/pith/mailindx.c
+--- alpine-2.00-patched/pith/mailindx.c        2014-09-30 23:25:10.000000000 -0700
++++ alpine-2.00/pith/mailindx.c        2014-09-21 02:41:32.000000000 -0700
+@@ -1179,7 +1179,7 @@
+                     break;
+                   
+                   default:
+-                    panic(&quot;Unhandled fixed case in setup_index_header&quot;);
++                    uw_panic(&quot;Unhandled fixed case in setup_index_header&quot;);
+                     break;
+                 }
+             }
+@@ -3279,7 +3279,7 @@
+     IELEM_S  *ielem;

+     if(!buf)
+-      panic(&quot;NULL buf in simple_index_line()&quot;);
++      uw_panic(&quot;NULL buf in simple_index_line()&quot;);

+     if(buflen &gt; 0)
+       buf[0] = '\0';
+@@ -5052,7 +5052,7 @@
+                 break;
+           
+               default:
+-                panic(&quot;Unhandled case in prio_str&quot;);
++                uw_panic(&quot;Unhandled case in prio_str&quot;);
+                 break;
+             }

+diff -urN alpine-2.00-patched/pith/mimetype.c alpine-2.00/pith/mimetype.c
+--- alpine-2.00-patched/pith/mimetype.c        2014-09-30 23:25:09.000000000 -0700
++++ alpine-2.00/pith/mimetype.c        2014-09-21 02:41:30.000000000 -0700
+@@ -175,7 +175,7 @@
+             }
+         }
+         else
+-          panic(&quot;Unhandled mime type search&quot;);
++          uw_panic(&quot;Unhandled mime type search&quot;);
+     }


+diff -urN alpine-2.00-patched/pith/pattern.c alpine-2.00/pith/pattern.c
+--- alpine-2.00-patched/pith/pattern.c        2014-09-30 23:25:10.000000000 -0700
++++ alpine-2.00/pith/pattern.c        2014-09-21 02:41:32.000000000 -0700
+@@ -1294,9 +1294,9 @@
+     char  *p;

+     if(!patgrp)
+-      panic(&quot;NULL patgrp to parse_patgrp_slash&quot;);
++      uw_panic(&quot;NULL patgrp to parse_patgrp_slash&quot;);
+     else if(!(str &amp;&amp; *str)){
+-        panic(&quot;NULL or empty string to parse_patgrp_slash&quot;);
++        uw_panic(&quot;NULL or empty string to parse_patgrp_slash&quot;);
+         patgrp-&gt;bogus = 1;
+     }
+     else if(!strncmp(str, &quot;/NICK=&quot;, 6))
+@@ -1515,9 +1515,9 @@
+     NAMEVAL_S *v;

+     if(!action)
+-      panic(&quot;NULL action to parse_action_slash&quot;);
++      uw_panic(&quot;NULL action to parse_action_slash&quot;);
+     else if(!(str &amp;&amp; *str))
+-      panic(&quot;NULL or empty string to parse_action_slash&quot;);
++      uw_panic(&quot;NULL or empty string to parse_action_slash&quot;);
+     else if(!strncmp(str, &quot;/ROLE=1&quot;, 7))
+       action-&gt;is_a_role = 1;
+     else if(!strncmp(str, &quot;/OTHER=1&quot;, 8))
+diff -urN alpine-2.00-patched/pith/save.c alpine-2.00/pith/save.c
+--- alpine-2.00-patched/pith/save.c        2014-09-30 23:25:10.000000000 -0700
++++ alpine-2.00/pith/save.c        2014-09-21 02:41:31.000000000 -0700
+@@ -239,7 +239,7 @@
+         break;
+       
+       default:
+-        panic(botch);
++        uw_panic(botch);
+         break;
+     }

+diff -urN alpine-2.00-patched/pith/send.c alpine-2.00/pith/send.c
+--- alpine-2.00-patched/pith/send.c        2014-09-30 23:25:10.000000000 -0700
++++ alpine-2.00/pith/send.c        2014-09-21 02:41:32.000000000 -0700
+@@ -428,7 +428,7 @@
+         fields[++i]   = &quot;X-Our-ReplyTo&quot;;        /* ReplyTo is real */
+         fields[++i]   = &quot;Lcc&quot;;                /* Lcc: too... */
+         if(++i != FIELD_COUNT)
+-          panic(&quot;Fix FIELD_COUNT&quot;);
++          uw_panic(&quot;Fix FIELD_COUNT&quot;);

+         for(pf = *custom; pf &amp;&amp; pf-&gt;name; pf = pf-&gt;next)
+           if(!pf-&gt;standard)
+@@ -3087,7 +3087,7 @@
+       return((char *)s);
+     
+     if(dlen &lt; SIZEOF_20KBUF)
+-      panic(&quot;bad call to encode_header_value&quot;);
++      uw_panic(&quot;bad call to encode_header_value&quot;);

+     if(!encode_all){
+         /*
+diff -urN alpine-2.00-patched/pith/sort.c alpine-2.00/pith/sort.c
+--- alpine-2.00-patched/pith/sort.c        2014-09-30 23:25:09.000000000 -0700
++++ alpine-2.00/pith/sort.c        2014-09-21 02:41:31.000000000 -0700
+@@ -487,7 +487,7 @@
+     dprint((2, &quot;sort_sort_callback\n&quot;));

+     if(mn_get_total(g_sort.msgmap) &lt; nmsgs)
+-      panic(&quot;Message count shrank after sort!&quot;);
++      uw_panic(&quot;Message count shrank after sort!&quot;);

+     /* copy ulongs to array of longs */
+     for(i = nmsgs; i &gt; 0; i--)
+diff -urN alpine-2.00-patched/pith/stream.c alpine-2.00/pith/stream.c
+--- alpine-2.00-patched/pith/stream.c        2014-09-30 23:25:10.000000000 -0700
++++ alpine-2.00/pith/stream.c        2014-09-21 02:41:32.000000000 -0700
+@@ -1728,7 +1728,7 @@
+                  * partial text.
+                  */
+                 if(!str_to_free)
+-                  panic(&quot;Programmer botch: partial fetch attempt w/o string pointer&quot;);
++                  uw_panic(&quot;Programmer botch: partial fetch attempt w/o string pointer&quot;);
+                 else
+                   *str_to_free = (char *) new_text.data;
+             }
+diff -urN alpine-2.00-patched/pith/string.c alpine-2.00/pith/string.c
+--- alpine-2.00-patched/pith/string.c        2014-09-30 23:25:09.000000000 -0700
++++ alpine-2.00/pith/string.c        2014-09-21 02:41:30.000000000 -0700
+@@ -2644,7 +2644,7 @@
+     char *ans = NULL;

+     if(!quote_these_chars)
+-      panic(&quot;bad arg to add_escapes&quot;);
++      uw_panic(&quot;bad arg to add_escapes&quot;);

+     if(src){
+         char *q, *p, *qchar;
+diff -urN alpine-2.00-patched/pith/util.h alpine-2.00/pith/util.h
+--- alpine-2.00-patched/pith/util.h        2014-09-30 23:25:09.000000000 -0700
++++ alpine-2.00/pith/util.h        2014-09-21 02:41:31.000000000 -0700
+@@ -56,7 +56,7 @@
+ /* currently mandatory to implement stubs */

+ /* called when we detect a serious program error */
+-void          panic(char *);
++void          uw_panic(char *);

+ /* called when testing to see if panic state is in effect */
+ int         panicking(void);
+diff -urN alpine-2.00-patched/web/src/alpined.d/signal.c alpine-2.00/web/src/alpined.d/signal.c
+--- alpine-2.00-patched/web/src/alpined.d/signal.c        2014-09-30 23:25:07.000000000 -0700
++++ alpine-2.00/web/src/alpined.d/signal.c        2014-09-21 02:41:24.000000000 -0700
+@@ -117,7 +117,7 @@
+ /*----------------------------------------------------------------------
+      Handle signals caused by aborts -- SIGSEGV, SIGILL, etc

+-Call panic which cleans up tty modes and then core dumps
++Call uw_panic which cleans up tty modes and then core dumps
+   ----------------------------------------------------------------------*/
+ static RETSIGTYPE
+ auger_in_signal(int sig)
+@@ -128,8 +128,8 @@
+       (void) unlink(peSocketName);

+     snprintf(tmp_20k_buf, SIZEOF_20KBUF, &quot;Abort: signal %d&quot;, sig);
+-    panic(tmp_20k_buf);                /* clean up and get out */
+-    exit(-1);                        /* in case panic doesn't kill us */
++    uw_panic(tmp_20k_buf);                /* clean up and get out */
++    exit(-1);                        /* in case uw_panic doesn't kill us */
+ }


</ins></span></pre>
</div>
</div>

</body>
</html>