Changeset 14698 for trunk/FACT++/dim/src/did
- Timestamp:
- 11/25/12 14:01:01 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/did/did.c
r14286 r14698 1457 1457 { 1458 1458 int i,j; 1459 char * asc, *ptr, str[80], tmp[256];1459 char *ptr, str[80], tmp[256]; 1460 1460 int last[4]; 1461 1461 /* 1462 char *asc; 1462 1463 asc = (char *)buff; 1464 */ 1463 1465 ptr = Service_content_str; 1464 1466 ptr += strlen(Service_content_str); … … 1512 1514 } 1513 1515 strcat(tmp,"\n"); 1516 /* 1514 1517 asc = (char *)&buff[i+1]; 1518 */ 1515 1519 } 1516 1520 strcpy(ptr, tmp); … … 1524 1528 { 1525 1529 int i,j; 1526 char * asc, *ptr, str[80], tmp[256];1530 char *ptr, str[80], tmp[256]; 1527 1531 longlong last[4]; 1528 1532 /* 1533 char *asc; 1529 1534 asc = (char *)buff; 1535 */ 1530 1536 ptr = Service_content_str; 1531 1537 ptr += strlen(Service_content_str); … … 1558 1564 } 1559 1565 strcat(tmp,"\n"); 1566 /* 1560 1567 asc = (char *)&buff[i+1]; 1568 */ 1561 1569 } 1562 1570 strcpy(ptr, tmp); … … 1570 1578 { 1571 1579 int i,j; 1572 char * asc, *ptr, str[80], tmp[256];1580 char *ptr, str[80], tmp[256]; 1573 1581 short last[8]; 1574 1582 /* 1583 char *asc; 1575 1584 asc = (char *)buff; 1585 */ 1576 1586 ptr = Service_content_str; 1577 1587 ptr += strlen(Service_content_str); … … 1625 1635 } 1626 1636 strcat(tmp,"\n"); 1637 /* 1627 1638 asc = (char *)&buff[i+1]; 1639 */ 1628 1640 } 1629 1641 strcpy(ptr, tmp); … … 1638 1650 int i,j; 1639 1651 char *asc, *ptr, str[80], tmp[256]; 1652 /* 1640 1653 char last[16]; 1641 1654 */ 1642 1655 asc = (char *)buff; 1643 1656 ptr = Service_content_str; … … 1662 1675 strcat(tmp," "); 1663 1676 strcat(tmp,&str[strlen(str)-2]); 1677 /* 1664 1678 last[i%16] = buff[i]; 1665 /*1666 1679 if(i%4 == 3) 1667 1680 strcat(tmp," "); … … 2627 2640 { 2628 2641 Arg arglist[10]; 2629 int n, n_services = -1; 2642 int n; 2643 /* 2644 int n_services = -1; 2645 */ 2630 2646 Widget w, ww, w_id; 2631 2647 void activate_services(), activate_clients(); … … 2633 2649 2634 2650 w_name[0] = 0; 2651 /* 2635 2652 if(servp) 2636 2653 n_services = servp->server.n_services; 2654 */ 2637 2655 strcpy(w_name,name); 2638 2656 if(strlen(w_name) >= MAX_TASK_NAME - 4) … … 2912 2930 int i = 0; 2913 2931 char str[2048], *strp, *strp1; 2914 DNS_SERVER_INFO *ptr;2915 2932 XmString xstr; 2916 2933 void delete_str(); 2917 2934 2935 /* 2936 DNS_SERVER_INFO *ptr; 2918 2937 ptr = &servp->server; 2919 /*2920 2938 sel_id = servp->pop_widget_id[1]; 2921 2939 id = (Widget)XmSelectionBoxGetChild(sel_id,XmDIALOG_LIST_LABEL); 2922 */ 2940 */ 2941 if(servp){} 2923 2942 if(Curr_client_list[0] == -1) 2924 2943 { … … 2980 2999 void activate_clients(Widget w, SERVER *servp, unsigned long *reason) 2981 3000 { 3001 /* 2982 3002 DNS_SERVER_INFO *ptr; 3003 */ 2983 3004 char str[100]; 2984 3005 void show_clients(); … … 2989 3010 if(reason){} 2990 3011 Curr_servp = servp; 3012 /* 2991 3013 ptr = &servp->server; 3014 */ 2992 3015 if(servp->pop_widget_id[1]) 2993 3016 { … … 3108 3131 { 3109 3132 static int old_n_services = 0; 3133 /* 3110 3134 static int changing = 0; 3135 */ 3111 3136 void put_label(); 3112 3137 … … 3115 3140 { 3116 3141 put_label(); 3142 /* 3117 3143 if(N_services > old_n_services) 3118 3144 changing = 1; 3145 */ 3119 3146 old_n_services = N_services; 3120 3147
Note:
See TracChangeset
for help on using the changeset viewer.