-
diff -ur alpine-2.11/alpine/adrbkcmd.c patched/alpine/adrbkcmd.c
old
|
new
|
|
530 | 530 | break; |
531 | 531 | |
532 | 532 | default: |
533 | | panic("Unexpected command in process_abook_view_cmd"); |
| 533 | uw_panic("Unexpected command in process_abook_view_cmd"); |
534 | 534 | break; |
535 | 535 | } |
536 | 536 | |
… |
… |
|
2639 | 2639 | } |
2640 | 2640 | |
2641 | 2641 | if(!ps->prc) |
2642 | | panic("NULL prc in convert_to_remote_config"); |
| 2642 | uw_panic("NULL prc in convert_to_remote_config"); |
2643 | 2643 | |
2644 | 2644 | dprint((2, "convert_to_remote_config\n")); |
2645 | 2645 | |
… |
… |
|
5019 | 5019 | break; |
5020 | 5020 | |
5021 | 5021 | default: |
5022 | | panic("can't happen in write_single_vcard_entry"); |
| 5022 | uw_panic("can't happen in write_single_vcard_entry"); |
5023 | 5023 | } |
5024 | 5024 | |
5025 | 5025 | for(; ll && *ll; ll++){ |
… |
… |
|
5152 | 5152 | break; |
5153 | 5153 | |
5154 | 5154 | default: |
5155 | | panic("can't happen in write_single_tab_entry"); |
| 5155 | uw_panic("can't happen in write_single_tab_entry"); |
5156 | 5156 | } |
5157 | 5157 | |
5158 | 5158 | if(i) |
… |
… |
|
7374 | 7374 | break; |
7375 | 7375 | |
7376 | 7376 | default: |
7377 | | panic("Unexpected command in process_ldap_cmd"); |
| 7377 | uw_panic("Unexpected command in process_ldap_cmd"); |
7378 | 7378 | break; |
7379 | 7379 | } |
7380 | 7380 | |
-
diff -ur alpine-2.11/alpine/alpine.c patched/alpine/alpine.c
old
|
new
|
|
2354 | 2354 | break; |
2355 | 2355 | |
2356 | 2356 | default: |
2357 | | panic("Unexpected command in choose_setup_cmd"); |
| 2357 | uw_panic("Unexpected command in choose_setup_cmd"); |
2358 | 2358 | break; |
2359 | 2359 | } |
2360 | 2360 | |
… |
… |
|
3358 | 3358 | This is also called from imap routines and fs_get and fs_resize. |
3359 | 3359 | ----*/ |
3360 | 3360 | void |
3361 | | panic(char *message) |
| 3361 | uw_panic(char *message) |
3362 | 3362 | { |
3363 | 3363 | char buf[256]; |
3364 | 3364 | |
-
diff -ur alpine-2.11/alpine/confscroll.c patched/alpine/confscroll.c
old
|
new
|
|
5333 | 5333 | } |
5334 | 5334 | else{ |
5335 | 5335 | if(reset_character_set_stuff(&err) == -1) |
5336 | | panic(err ? err : "trouble with Character-Set"); |
| 5336 | uw_panic(err ? err : "trouble with Character-Set"); |
5337 | 5337 | else if(err){ |
5338 | 5338 | q_status_message(SM_ORDER | SM_DING, 3, 5, err); |
5339 | 5339 | fs_give((void **) &err); |
… |
… |
|
5349 | 5349 | } |
5350 | 5350 | else{ |
5351 | 5351 | if(reset_character_set_stuff(&err) == -1) |
5352 | | panic(err ? err : "trouble with Character-Set"); |
| 5352 | uw_panic(err ? err : "trouble with Character-Set"); |
5353 | 5353 | else if(err){ |
5354 | 5354 | q_status_message(SM_ORDER | SM_DING, 3, 5, err); |
5355 | 5355 | fs_give((void **) &err); |
-
diff -ur alpine-2.11/alpine/folder.c patched/alpine/folder.c
old
|
new
|
|
1024 | 1024 | strncat(servpart, "#news.", sizeof(servpart)-1-strlen(servpart)); |
1025 | 1025 | } |
1026 | 1026 | else |
1027 | | panic("Unexpected invalid server"); |
| 1027 | uw_panic("Unexpected invalid server"); |
1028 | 1028 | } |
1029 | 1029 | else |
1030 | 1030 | servpart[0] = '\0'; |
-
diff -ur alpine-2.11/alpine/help.c patched/alpine/help.c
old
|
new
|
|
431 | 431 | break; |
432 | 432 | |
433 | 433 | default : |
434 | | panic("Unhandled case"); |
| 434 | uw_panic("Unhandled case"); |
435 | 435 | } |
436 | 436 | |
437 | 437 | return(rv); |
… |
… |
|
898 | 898 | break; |
899 | 899 | |
900 | 900 | default: |
901 | | panic("Unexpected command in journal_processor"); |
| 901 | uw_panic("Unexpected command in journal_processor"); |
902 | 902 | break; |
903 | 903 | } |
904 | 904 | |
-
diff -ur alpine-2.11/alpine/imap.c patched/alpine/imap.c
old
|
new
|
|
1842 | 1842 | break; |
1843 | 1843 | |
1844 | 1844 | default: |
1845 | | panic("Unexpected command in answer_cert_failure"); |
| 1845 | uw_panic("Unexpected command in answer_cert_failure"); |
1846 | 1846 | break; |
1847 | 1847 | } |
1848 | 1848 | |
-
diff -ur alpine-2.11/alpine/mailcmd.c patched/alpine/mailcmd.c
old
|
new
|
|
1479 | 1479 | |
1480 | 1480 | /*--------- Default, unknown command ----------*/ |
1481 | 1481 | default: |
1482 | | panic("Unexpected command case"); |
| 1482 | uw_panic("Unexpected command case"); |
1483 | 1483 | break; |
1484 | 1484 | } |
1485 | 1485 | |
… |
… |
|
2676 | 2676 | RULE_RESULT *rule; |
2677 | 2677 | |
2678 | 2678 | if(!cntxt) |
2679 | | panic("no context ptr in save_prompt"); |
| 2679 | uw_panic("no context ptr in save_prompt"); |
2680 | 2680 | |
2681 | 2681 | init_hist(&history, HISTSIZE); |
2682 | 2682 | |
… |
… |
|
3068 | 3068 | break; |
3069 | 3069 | |
3070 | 3070 | default : |
3071 | | panic("Unhandled case"); |
| 3071 | uw_panic("Unhandled case"); |
3072 | 3072 | break; |
3073 | 3073 | } |
3074 | 3074 | |
… |
… |
|
5713 | 5713 | break; |
5714 | 5714 | |
5715 | 5715 | default : |
5716 | | panic("Unhandled case"); |
| 5716 | uw_panic("Unhandled case"); |
5717 | 5717 | break; |
5718 | 5718 | } |
5719 | 5719 | |
-
diff -ur alpine-2.11/alpine/mailpart.c patched/alpine/mailpart.c
old
|
new
|
|
2631 | 2631 | break; |
2632 | 2632 | |
2633 | 2633 | default: |
2634 | | panic("Unexpected command case"); |
| 2634 | uw_panic("Unexpected command case"); |
2635 | 2635 | break; |
2636 | 2636 | } |
2637 | 2637 | |
-
diff -ur alpine-2.11/alpine/mailview.c patched/alpine/mailview.c
old
|
new
|
|
1068 | 1068 | |
1069 | 1069 | |
1070 | 1070 | default : |
1071 | | panic("Unexpected HANDLE type"); |
| 1071 | uw_panic("Unexpected HANDLE type"); |
1072 | 1072 | } |
1073 | 1073 | |
1074 | 1074 | return(0); |
… |
… |
|
1171 | 1171 | } |
1172 | 1172 | |
1173 | 1173 | if(l == start_line) |
1174 | | panic("Internal Error: no handle found"); |
| 1174 | uw_panic("Internal Error: no handle found"); |
1175 | 1175 | else |
1176 | 1176 | start_line = l; |
1177 | 1177 | } |
-
diff -ur alpine-2.11/alpine/newuser.c patched/alpine/newuser.c
old
|
new
|
|
197 | 197 | break; |
198 | 198 | |
199 | 199 | default : |
200 | | panic("Unhandled case"); |
| 200 | uw_panic("Unhandled case"); |
201 | 201 | } |
202 | 202 | |
203 | 203 | return(rv); |
-
diff -ur alpine-2.11/alpine/radio.c patched/alpine/radio.c
old
|
new
|
|
280 | 280 | |
281 | 281 | if(flags & RB_RET_HELP){ |
282 | 282 | if(help_text != NO_HELP) |
283 | | panic("RET_HELP and help in radio_buttons!"); |
| 283 | uw_panic("RET_HELP and help in radio_buttons!"); |
284 | 284 | |
285 | 285 | button_list[b].ch = '?'; |
286 | 286 | button_list[b].rval = 3; |
… |
… |
|
360 | 360 | clrbitmap(bitmap); |
361 | 361 | memset(fkey_table, NO_OP_COMMAND, 12 * sizeof(int)); |
362 | 362 | if(flags & RB_RET_HELP && help_text != NO_HELP) |
363 | | panic("RET_HELP and help in radio_buttons!"); |
| 363 | uw_panic("RET_HELP and help in radio_buttons!"); |
364 | 364 | |
365 | 365 | /* if shown, always at position 0 */ |
366 | 366 | if(help_text != NO_HELP || flags & RB_RET_HELP){ |
… |
… |
|
398 | 398 | && esc_list[i-start].label[0] != '\0'){ /* visible */ |
399 | 399 | if(i == 12){ /* special case where we put it in help slot */ |
400 | 400 | if(help_text != NO_HELP) |
401 | | panic("Programming botch in radio_buttons(): too many keys"); |
| 401 | uw_panic("Programming botch in radio_buttons(): too many keys"); |
402 | 402 | |
403 | 403 | if(esc_list[i-start].ch != -2) |
404 | 404 | setbitn(0, bitmap); /* the help slot */ |
… |
… |
|
420 | 420 | rb_keymenu.keys[0].label = esc_list[i-start].label; |
421 | 421 | } |
422 | 422 | else |
423 | | panic("Botch in radio_buttons(): too many keys"); |
| 423 | uw_panic("Botch in radio_buttons(): too many keys"); |
424 | 424 | } |
425 | 425 | } |
426 | 426 | else{ |
… |
… |
|
823 | 823 | */ |
824 | 824 | for(i=0; list1 && list1[i].ch != -1; i++){ |
825 | 825 | if(list1[i].rval == list[j].rval) |
826 | | panic("1bad rval in d_r"); |
| 826 | uw_panic("1bad rval in d_r"); |
827 | 827 | if(F_OFF(F_USE_FK,ps_global) && list1[i].ch == list[j].ch) |
828 | | panic("1bad ch in ccl"); |
| 828 | uw_panic("1bad ch in ccl"); |
829 | 829 | } |
830 | 830 | |
831 | 831 | for(i=0; list2 && list2[i].ch != -1; i++){ |
832 | 832 | if(list2[i].rval == list[j].rval) |
833 | | panic("2bad rval in d_r"); |
| 833 | uw_panic("2bad rval in d_r"); |
834 | 834 | if(F_OFF(F_USE_FK,ps_global) && list2[i].ch == list[j].ch) |
835 | | panic("2bad ch in ccl"); |
| 835 | uw_panic("2bad ch in ccl"); |
836 | 836 | } |
837 | 837 | |
838 | 838 | j++; |
… |
… |
|
840 | 840 | /* the visible set */ |
841 | 841 | for(i=0; list1 && list1[i].ch != -1; i++){ |
842 | 842 | if(i >= KEYS_PER_LIST && list1[i].label[0] != '\0') |
843 | | panic("too many visible keys in ccl"); |
| 843 | uw_panic("too many visible keys in ccl"); |
844 | 844 | |
845 | 845 | list[j++] = list1[i]; |
846 | 846 | } |
-
diff -ur alpine-2.11/alpine/remote.c patched/alpine/remote.c
old
|
new
|
|
248 | 248 | break; |
249 | 249 | |
250 | 250 | default: |
251 | | panic("Unexpected command in rd_answer_forge_warning"); |
| 251 | uw_panic("Unexpected command in rd_answer_forge_warning"); |
252 | 252 | break; |
253 | 253 | } |
254 | 254 | |
-
diff -ur alpine-2.11/alpine/roleconf.c patched/alpine/roleconf.c
old
|
new
|
|
5935 | 5935 | char ***alval; |
5936 | 5936 | |
5937 | 5937 | if(!(v && name)) |
5938 | | panic("setup_dummy_pattern_var"); |
| 5938 | uw_panic("setup_dummy_pattern_var"); |
5939 | 5939 | |
5940 | 5940 | v->name = (char *) fs_get(strlen(name)+NOTLEN+1); |
5941 | 5941 | snprintf(v->name, strlen(name)+NOTLEN+1, "%s%s", (defpat && defpat->not) ? NOT : "", name); |
-
diff -ur alpine-2.11/alpine/signal.c patched/alpine/signal.c
old
|
new
|
|
188 | 188 | snprintf(buf, sizeof(buf), "Received abort signal(sig=%d)", sig); |
189 | 189 | buf[sizeof(buf)-1] = '\0'; |
190 | 190 | |
191 | | panic(buf); /* clean up and get out */ |
| 191 | uw_panic(buf); /* clean up and get out */ |
192 | 192 | |
193 | 193 | exit(-1); /* in case panic doesn't kill us */ |
194 | 194 | } |
-
diff -ur alpine-2.11/pith/adrbklib.c patched/pith/adrbklib.c
old
|
new
|
|
4343 | 4343 | |
4344 | 4344 | nn = (adrbk_cntr_t)n; |
4345 | 4345 | if(!exp_head) |
4346 | | panic("exp_head not set in exp_set_expanded"); |
| 4346 | uw_panic("exp_head not set in exp_set_expanded"); |
4347 | 4347 | |
4348 | 4348 | for(e = exp_head; e->next; e = e->next) |
4349 | 4349 | if(e->next->ent >= nn) |
… |
… |
|
4375 | 4375 | |
4376 | 4376 | nn = (adrbk_cntr_t)n; |
4377 | 4377 | if(!exp_head) |
4378 | | panic("exp_head not set in exp_unset_expanded"); |
| 4378 | uw_panic("exp_head not set in exp_unset_expanded"); |
4379 | 4379 | |
4380 | 4380 | for(e = exp_head; e->next; e = e->next) |
4381 | 4381 | if(e->next->ent >= nn) |
… |
… |
|
4407 | 4407 | |
4408 | 4408 | nn = (adrbk_cntr_t)n; |
4409 | 4409 | if(!exp_head) |
4410 | | panic("exp_head not set in exp_del_nth"); |
| 4410 | uw_panic("exp_head not set in exp_del_nth"); |
4411 | 4411 | |
4412 | 4412 | e = exp_head->next; |
4413 | 4413 | while(e && e->ent < nn) |
… |
… |
|
4447 | 4447 | |
4448 | 4448 | nn = (adrbk_cntr_t)n; |
4449 | 4449 | if(!exp_head) |
4450 | | panic("exp_head not set in exp_add_nth"); |
| 4450 | uw_panic("exp_head not set in exp_add_nth"); |
4451 | 4451 | |
4452 | 4452 | e = exp_head->next; |
4453 | 4453 | while(e && e->ent < nn) |
-
diff -ur alpine-2.11/pith/charset.c patched/pith/charset.c
old
|
new
|
|
424 | 424 | if(utf8_charset(cset)){ |
425 | 425 | if(!utf8_text(&src, cset, &xsrc, 0L)){ |
426 | 426 | /* should not happen */ |
427 | | panic("c-client failed to transliterate recognized characterset"); |
| 427 | uw_panic("c-client failed to transliterate recognized characterset"); |
428 | 428 | } |
429 | 429 | } |
430 | 430 | else{ |
… |
… |
|
451 | 451 | if(!(cs->type == CT_ASCII || cs->type == CT_UTF8)){ |
452 | 452 | if(!utf8_text_cs(&src, cs, &xsrc, 0L, 0L)){ |
453 | 453 | /* should not happen */ |
454 | | panic("c-client failed to transliterate recognized characterset"); |
| 454 | uw_panic("c-client failed to transliterate recognized characterset"); |
455 | 455 | } |
456 | 456 | } |
457 | 457 | } |
… |
… |
|
461 | 461 | && utf8_charset(cset)){ |
462 | 462 | if(!utf8_text(&src, cset, &xsrc, 0L)){ |
463 | 463 | /* should not happen */ |
464 | | panic("c-client failed to transliterate recognized character set"); |
| 464 | uw_panic("c-client failed to transliterate recognized character set"); |
465 | 465 | } |
466 | 466 | } |
467 | 467 | else{ |
-
diff -ur alpine-2.11/pith/conf.c patched/pith/conf.c
old
|
new
|
|
1922 | 1922 | */ |
1923 | 1923 | |
1924 | 1924 | if(reset_character_set_stuff(&err) == -1) |
1925 | | panic(err ? err : "trouble with character set setup"); |
| 1925 | uw_panic(err ? err : "trouble with character set setup"); |
1926 | 1926 | else if(err){ |
1927 | 1927 | init_error(ps, SM_ORDER | SM_DING, 3, 5, err); |
1928 | 1928 | fs_give((void **) &err); |
… |
… |
|
2743 | 2743 | case 4: valptr = v->global_val.l; break; |
2744 | 2744 | case 5: valptr = v->fixed_val.l; break; |
2745 | 2745 | case 6: valptr = v->cmdline_val.l; break; |
2746 | | default: panic("bad case in convert_configvar"); |
| 2746 | default: uw_panic("bad case in convert_configvar"); |
2747 | 2747 | } |
2748 | 2748 | |
2749 | 2749 | if(valptr){ |
… |
… |
|
2769 | 2769 | case 4: valptr = &v->global_val.p; break; |
2770 | 2770 | case 5: valptr = &v->fixed_val.p; break; |
2771 | 2771 | case 6: valptr = &v->cmdline_val.p; break; |
2772 | | default: panic("bad case in convert_configvar"); |
| 2772 | default: uw_panic("bad case in convert_configvar"); |
2773 | 2773 | } |
2774 | 2774 | |
2775 | 2775 | if(valptr && *valptr && (*valptr)[0]){ |
… |
… |
|
7683 | 7683 | |
7684 | 7684 | snprintf(buf1, sizeof(buf1), "%.*s", MAX(sizeof(buf1) - 1 - strlen(message), 0), arg); |
7685 | 7685 | snprintf(buf2, sizeof(buf2), message, buf1); |
7686 | | panic(buf2); |
| 7686 | uw_panic(buf2); |
7687 | 7687 | } |
7688 | 7688 | |
7689 | 7689 | |
-
diff -ur alpine-2.11/pith/filter.c patched/pith/filter.c
old
|
new
|
|
365 | 365 | fs_give((void **) &sp); |
366 | 366 | } |
367 | 367 | else |
368 | | panic("Programmer botch: Can't unstack store readc"); |
| 368 | uw_panic("Programmer botch: Can't unstack store readc"); |
369 | 369 | } |
370 | 370 | else |
371 | | panic("Programmer botch: NULL store clearing store readc"); |
| 371 | uw_panic("Programmer botch: NULL store clearing store readc"); |
372 | 372 | } |
373 | 373 | |
374 | 374 | |
… |
… |
|
399 | 399 | fs_give((void **) &sp); |
400 | 400 | } |
401 | 401 | else |
402 | | panic("Programmer botch: Can't unstack store writec"); |
| 402 | uw_panic("Programmer botch: Can't unstack store writec"); |
403 | 403 | } |
404 | 404 | else |
405 | | panic("Programmer botch: NULL store clearing store writec"); |
| 405 | uw_panic("Programmer botch: NULL store clearing store writec"); |
406 | 406 | } |
407 | 407 | |
408 | 408 | |
-
diff -ur alpine-2.11/pith/folder.c patched/pith/folder.c
old
|
new
|
|
592 | 592 | * collection??? |
593 | 593 | */ |
594 | 594 | if(!prime) |
595 | | panic(_("No folder collections defined")); |
| 595 | uw_panic(_("No folder collections defined")); |
596 | 596 | |
597 | 597 | /* |
598 | 598 | * At this point, insert the INBOX mapping as the leading |
-
diff -ur alpine-2.11/pith/imap.c patched/pith/imap.c
old
|
new
|
|
643 | 643 | void |
644 | 644 | mm_fatal(char *message) |
645 | 645 | { |
646 | | panic(message); |
| 646 | uw_panic(message); |
647 | 647 | } |
648 | 648 | |
649 | 649 | |
-
diff -ur alpine-2.11/pith/ldap.c patched/pith/ldap.c
old
|
new
|
|
1700 | 1700 | break; |
1701 | 1701 | |
1702 | 1702 | default: |
1703 | | panic("LDAP function not implemented"); |
| 1703 | uw_panic("LDAP function not implemented"); |
1704 | 1704 | } |
1705 | 1705 | #endif |
1706 | 1706 | |
-
diff -ur alpine-2.11/pith/mailcap.c patched/pith/mailcap.c
old
|
new
|
|
252 | 252 | return; |
253 | 253 | |
254 | 254 | default: |
255 | | panic("Programmer botch in mc_process_file"); |
| 255 | uw_panic("Programmer botch in mc_process_file"); |
256 | 256 | /*NOTREACHED*/ |
257 | 257 | } |
258 | 258 | |
-
diff -ur alpine-2.11/pith/mailcmd.c patched/pith/mailcmd.c
old
|
new
|
|
2923 | 2923 | break; |
2924 | 2924 | |
2925 | 2925 | default: |
2926 | | panic("Unexpected incoming startup case"); |
| 2926 | uw_panic("Unexpected incoming startup case"); |
2927 | 2927 | break; |
2928 | 2928 | |
2929 | 2929 | } |
-
diff -ur alpine-2.11/pith/mailindx.c patched/pith/mailindx.c
old
|
new
|
|
1237 | 1237 | break; |
1238 | 1238 | |
1239 | 1239 | default: |
1240 | | panic("Unhandled fixed case in setup_index_header"); |
| 1240 | uw_panic("Unhandled fixed case in setup_index_header"); |
1241 | 1241 | break; |
1242 | 1242 | } |
1243 | 1243 | } |
… |
… |
|
3396 | 3396 | IELEM_S *ielem; |
3397 | 3397 | |
3398 | 3398 | if(!buf) |
3399 | | panic("NULL buf in simple_index_line()"); |
| 3399 | uw_panic("NULL buf in simple_index_line()"); |
3400 | 3400 | |
3401 | 3401 | if(buflen > 0) |
3402 | 3402 | buf[0] = '\0'; |
… |
… |
|
5202 | 5202 | break; |
5203 | 5203 | |
5204 | 5204 | default: |
5205 | | panic("Unhandled case in prio_str"); |
| 5205 | uw_panic("Unhandled case in prio_str"); |
5206 | 5206 | break; |
5207 | 5207 | } |
5208 | 5208 | |
-
diff -ur alpine-2.11/pith/mimetype.c patched/pith/mimetype.c
old
|
new
|
|
176 | 176 | } |
177 | 177 | } |
178 | 178 | else |
179 | | panic("Unhandled mime type search"); |
| 179 | uw_panic("Unhandled mime type search"); |
180 | 180 | } |
181 | 181 | |
182 | 182 | /* if we still can not find the type, but it is a .docx (or alike) extension |
-
diff -ur alpine-2.11/pith/pattern.c patched/pith/pattern.c
old
|
new
|
|
1295 | 1295 | char *p; |
1296 | 1296 | |
1297 | 1297 | if(!patgrp) |
1298 | | panic("NULL patgrp to parse_patgrp_slash"); |
| 1298 | uw_panic("NULL patgrp to parse_patgrp_slash"); |
1299 | 1299 | else if(!(str && *str)){ |
1300 | | panic("NULL or empty string to parse_patgrp_slash"); |
| 1300 | uw_panic("NULL or empty string to parse_patgrp_slash"); |
1301 | 1301 | patgrp->bogus = 1; |
1302 | 1302 | } |
1303 | 1303 | else if(!strncmp(str, "/NICK=", 6)) |
… |
… |
|
1516 | 1516 | NAMEVAL_S *v; |
1517 | 1517 | |
1518 | 1518 | if(!action) |
1519 | | panic("NULL action to parse_action_slash"); |
| 1519 | uw_panic("NULL action to parse_action_slash"); |
1520 | 1520 | else if(!(str && *str)) |
1521 | | panic("NULL or empty string to parse_action_slash"); |
| 1521 | uw_panic("NULL or empty string to parse_action_slash"); |
1522 | 1522 | else if(!strncmp(str, "/ROLE=1", 7)) |
1523 | 1523 | action->is_a_role = 1; |
1524 | 1524 | else if(!strncmp(str, "/OTHER=1", 8)) |
-
diff -ur alpine-2.11/pith/save.c patched/pith/save.c
old
|
new
|
|
240 | 240 | break; |
241 | 241 | |
242 | 242 | default: |
243 | | panic(botch); |
| 243 | uw_panic(botch); |
244 | 244 | break; |
245 | 245 | } |
246 | 246 | |
-
diff -ur alpine-2.11/pith/send.c patched/pith/send.c
old
|
new
|
|
437 | 437 | fields[++i] = "X-Our-ReplyTo"; /* ReplyTo is real */ |
438 | 438 | fields[++i] = "Lcc"; /* Lcc: too... */ |
439 | 439 | if(++i != FIELD_COUNT) |
440 | | panic("Fix FIELD_COUNT"); |
| 440 | uw_panic("Fix FIELD_COUNT"); |
441 | 441 | |
442 | 442 | for(pf = *custom; pf && pf->name; pf = pf->next) |
443 | 443 | if(!pf->standard) |
… |
… |
|
3128 | 3128 | return((char *)s); |
3129 | 3129 | |
3130 | 3130 | if(dlen < SIZEOF_20KBUF) |
3131 | | panic("bad call to encode_header_value"); |
| 3131 | uw_panic("bad call to encode_header_value"); |
3132 | 3132 | |
3133 | 3133 | if(!encode_all){ |
3134 | 3134 | /* |
-
diff -ur alpine-2.11/pith/sort.c patched/pith/sort.c
old
|
new
|
|
497 | 497 | dprint((2, "sort_sort_callback\n")); |
498 | 498 | |
499 | 499 | if(mn_get_total(g_sort.msgmap) < nmsgs) |
500 | | panic("Message count shrank after sort!"); |
| 500 | uw_panic("Message count shrank after sort!"); |
501 | 501 | |
502 | 502 | /* copy ulongs to array of longs */ |
503 | 503 | for(i = nmsgs; i > 0; i--) |
-
diff -ur alpine-2.11/pith/stream.c patched/pith/stream.c
old
|
new
|
|
1729 | 1729 | * partial text. |
1730 | 1730 | */ |
1731 | 1731 | if(!str_to_free) |
1732 | | panic("Programmer botch: partial fetch attempt w/o string pointer"); |
| 1732 | uw_panic("Programmer botch: partial fetch attempt w/o string pointer"); |
1733 | 1733 | else |
1734 | 1734 | *str_to_free = (char *) new_text.data; |
1735 | 1735 | } |
-
diff -ur alpine-2.11/pith/string.c patched/pith/string.c
old
|
new
|
|
2671 | 2671 | char *ans = NULL; |
2672 | 2672 | |
2673 | 2673 | if(!quote_these_chars) |
2674 | | panic("bad arg to add_escapes"); |
| 2674 | uw_panic("bad arg to add_escapes"); |
2675 | 2675 | |
2676 | 2676 | if(src){ |
2677 | 2677 | char *q, *p, *qchar; |
-
diff -ur alpine-2.11/pith/util.h patched/pith/util.h
old
|
new
|
|
56 | 56 | /* currently mandatory to implement stubs */ |
57 | 57 | |
58 | 58 | /* called when we detect a serious program error */ |
59 | | void panic(char *); |
| 59 | void uw_panic(char *); |
60 | 60 | |
61 | 61 | /* called when testing to see if panic state is in effect */ |
62 | 62 | int panicking(void); |
-
diff -ur alpine-2.11/web/src/alpined.d/signal.c patched/web/src/alpined.d/signal.c
old
|
new
|
|
128 | 128 | (void) unlink(peSocketName); |
129 | 129 | |
130 | 130 | snprintf(tmp_20k_buf, SIZEOF_20KBUF, "Abort: signal %d", sig); |
131 | | panic(tmp_20k_buf); /* clean up and get out */ |
| 131 | uw_panic(tmp_20k_buf); /* clean up and get out */ |
132 | 132 | exit(-1); /* in case panic doesn't kill us */ |
133 | 133 | } |
134 | 134 | |
-
diff -ur alpine-2.11/web/src/alpined.d/stubs.c patched/web/src/alpined.d/stubs.c
old
|
new
|
|
100 | 100 | This is also called from imap routines and fs_get and fs_resize. |
101 | 101 | ----*/ |
102 | 102 | void |
103 | | panic(message) |
| 103 | uw_panic(message) |
104 | 104 | char *message; |
105 | 105 | { |
106 | 106 | in_panic = 1; |