Changeset 481 for trunk/src/sh_portcheck.c
- Timestamp:
- Jul 18, 2015, 5:06:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_portcheck.c
r473 r481 529 529 * by longjmp' warning. And no, 'volatile' proved insufficient. 530 530 */ 531 static void * sh_dummy_pre = NULL;532 static void * sh_dummy_ptr = NULL;531 void * sh_dummy_531_pre = NULL; 532 void * sh_dummy_532_ptr = NULL; 533 533 534 534 /* check the list of open ports for any that are marked as UNKN 535 535 */ 536 static void sh_portchk_check_list (struct sh_portentry ** head, int proto, int report) 536 static void sh_portchk_check_list (struct sh_portentry ** head, 537 int proto, int report) 537 538 { 538 539 struct sh_portentry * ptr = *head; … … 543 544 * Avoids the 'clobbered by longjmp' warning. 544 545 */ 545 sh_dummy_ pre = (void*) ⪯546 sh_dummy_ ptr = (void*) &ptr;546 sh_dummy_531_pre = (void*) ⪯ 547 sh_dummy_532_ptr = (void*) &ptr; 547 548 548 549 while (ptr) … … 616 617 } 617 618 618 sh_dummy_ ptr = NULL;619 sh_dummy_ pre = NULL;619 sh_dummy_532_ptr = NULL; 620 sh_dummy_531_pre = NULL; 620 621 621 622 return; … … 1561 1562 /* Subroutine to add an interface 1562 1563 */ 1563 static void * sh_dummy_str = NULL; /* fix clobbered by.. warning */1564 void * sh_dummy_1564_str = NULL; /* fix clobbered by.. warning */ 1564 1565 1565 1566 static int sh_portchk_add_interface (const char * str) … … 1569 1570 char buf[64]; 1570 1571 1571 sh_dummy_ str = (void*) &str;1572 sh_dummy_1564_str = (void*) &str; 1572 1573 1573 1574 if (iface_initialized == 0) … … 1610 1611 } while (*str); 1611 1612 1612 sh_dummy_ str = NULL;1613 sh_dummy_1564_str = NULL; 1613 1614 return 0; 1614 1615 }
Note:
See TracChangeset
for help on using the changeset viewer.