53
53
54
54
#include "tcpip.h"
55
55
56
- static u_int find_slot ( ULONG_PTR address ) {
56
+ static u_int find_slot ( U_LONG_PTR address ) {
57
57
u_int i ;
58
58
i = 0 ;
59
59
obtain_lock (& tcpip_lock );
@@ -496,7 +496,7 @@ static void EZASOKET (u_int func, int aux1, int aux2, talk_ptr t) {
496
496
497
497
t -> len_out = sizeof (Clocal_adx );
498
498
t -> buffer_out = (char * )malloc (t -> len_out );
499
- t -> buffer_out_slot = find_slot ((ULONG_PTR )& (t -> buffer_out [0 ]));
499
+ t -> buffer_out_slot = find_slot ((U_LONG_PTR )& (t -> buffer_out [0 ]));
500
500
memcpy (t -> buffer_out , & Slocal_adx , t -> len_out );
501
501
((SOCKADDR_IN * )(t -> buffer_out ))-> sin_family = htons (((SOCKADDR_IN * )(t -> buffer_out ))-> sin_family );
502
502
@@ -540,7 +540,7 @@ static void EZASOKET (u_int func, int aux1, int aux2, talk_ptr t) {
540
540
}
541
541
542
542
t -> buffer_out = (char * )malloc (aux2 );
543
- t -> buffer_out_slot = find_slot ((ULONG_PTR )& (t -> buffer_out [0 ]));
543
+ t -> buffer_out_slot = find_slot ((U_LONG_PTR )& (t -> buffer_out [0 ]));
544
544
545
545
if ((size = recv (Ccom_han [aux1 ], t -> buffer_out , aux2 , 0 )) == SOCKET_ERROR ) { /* receive command */
546
546
@@ -578,7 +578,7 @@ static void EZASOKET (u_int func, int aux1, int aux2, talk_ptr t) {
578
578
579
579
t -> len_out = t -> len_in ;
580
580
t -> buffer_out = (char * )malloc (t -> len_out );
581
- t -> buffer_out_slot = find_slot ((ULONG_PTR )& (t -> buffer_out [0 ]));
581
+ t -> buffer_out_slot = find_slot ((U_LONG_PTR )& (t -> buffer_out [0 ]));
582
582
583
583
m = t -> len_out ;
584
584
i = 0 ;
@@ -595,7 +595,7 @@ static void EZASOKET (u_int func, int aux1, int aux2, talk_ptr t) {
595
595
596
596
t -> len_out = t -> len_in ;
597
597
t -> buffer_out = (char * )malloc (t -> len_out );
598
- t -> buffer_out_slot = find_slot ((ULONG_PTR )& (t -> buffer_out [0 ]));
598
+ t -> buffer_out_slot = find_slot ((U_LONG_PTR )& (t -> buffer_out [0 ]));
599
599
600
600
m = t -> len_out ;
601
601
i = 0 ;
@@ -641,7 +641,7 @@ static void EZASOKET (u_int func, int aux1, int aux2, talk_ptr t) {
641
641
642
642
t -> len_out = sizeof (Clocal_adx );
643
643
t -> buffer_out = (char * )malloc (t -> len_out );
644
- t -> buffer_out_slot = find_slot ((ULONG_PTR )& (t -> buffer_out [0 ]));
644
+ t -> buffer_out_slot = find_slot ((U_LONG_PTR )& (t -> buffer_out [0 ]));
645
645
646
646
isock = t -> len_out ;
647
647
t -> ret_cd = getsockname (Ccom_han [aux1 ], (struct sockaddr * )(t -> buffer_out ), & isock );
@@ -799,7 +799,7 @@ static void EZASOKET (u_int func, int aux1, int aux2, talk_ptr t) {
799
799
800
800
t -> len_out = Cselect [m ]-> len ;
801
801
t -> buffer_out = (char * )malloc (t -> len_out );
802
- t -> buffer_out_slot = find_slot ((ULONG_PTR )& (t -> buffer_out [0 ]));
802
+ t -> buffer_out_slot = find_slot ((U_LONG_PTR )& (t -> buffer_out [0 ]));
803
803
memset (t -> buffer_out , 0 , t -> len_out );
804
804
805
805
i = 0 ;
@@ -824,7 +824,7 @@ static void EZASOKET (u_int func, int aux1, int aux2, talk_ptr t) {
824
824
825
825
t -> len_out = Cselect [m ]-> len ;
826
826
t -> buffer_out = (char * )malloc (t -> len_out );
827
- t -> buffer_out_slot = find_slot ((ULONG_PTR )& (t -> buffer_out [0 ]));
827
+ t -> buffer_out_slot = find_slot ((U_LONG_PTR )& (t -> buffer_out [0 ]));
828
828
memset (t -> buffer_out , 0 , t -> len_out );
829
829
830
830
i = 0 ;
@@ -849,7 +849,7 @@ static void EZASOKET (u_int func, int aux1, int aux2, talk_ptr t) {
849
849
850
850
t -> len_out = Cselect [m ]-> len ;
851
851
t -> buffer_out = (char * )malloc (t -> len_out );
852
- t -> buffer_out_slot = find_slot ((ULONG_PTR )& (t -> buffer_out [0 ]));
852
+ t -> buffer_out_slot = find_slot ((U_LONG_PTR )& (t -> buffer_out [0 ]));
853
853
memset (t -> buffer_out , 0 , t -> len_out );
854
854
855
855
i = 0 ;
@@ -915,7 +915,7 @@ static void EZASOKET (u_int func, int aux1, int aux2, talk_ptr t) {
915
915
916
916
t -> len_out = t -> ret_cd ;
917
917
t -> buffer_out = (char * ) malloc (t -> len_out );
918
- t -> buffer_out_slot = find_slot ((ULONG_PTR )& (t -> buffer_out [0 ]));
918
+ t -> buffer_out_slot = find_slot ((U_LONG_PTR )& (t -> buffer_out [0 ]));
919
919
920
920
m = t -> ret_cd ;
921
921
i = 0 ;
@@ -934,7 +934,7 @@ static void EZASOKET (u_int func, int aux1, int aux2, talk_ptr t) {
934
934
935
935
t -> len_out = sizeof (Clocal_adx );
936
936
t -> buffer_out = (char * ) malloc (t -> len_out );
937
- t -> buffer_out_slot = find_slot ((ULONG_PTR )& (t -> buffer_out [0 ]));
937
+ t -> buffer_out_slot = find_slot ((U_LONG_PTR )& (t -> buffer_out [0 ]));
938
938
939
939
isock = t -> len_out ;
940
940
t -> ret_cd = getpeername (Ccom_han [aux1 ], (struct sockaddr * )(t -> buffer_out ), & isock );
@@ -982,11 +982,11 @@ u_int lar_tcpip (u_int * regs) {
982
982
if (get_reg (regs , 3 ) == 0 ) { /* Alloc memory for this communication. */
983
983
984
984
t = (talk_ptr )malloc (sizeof (talk ));
985
- t -> slot = find_slot ((ULONG_PTR )t );
985
+ t -> slot = find_slot ((U_LONG_PTR )t );
986
986
987
987
t -> len_in = get_reg (regs , 1 );
988
988
t -> buffer_in = (char * )malloc (t -> len_in + 1 );
989
- t -> buffer_in_slot = find_slot ((ULONG_PTR )& (t -> buffer_in [0 ]));
989
+ t -> buffer_in_slot = find_slot ((U_LONG_PTR )& (t -> buffer_in [0 ]));
990
990
t -> buffer_in [t -> len_in ] = 0 ; /* NULL Terminator */
991
991
992
992
t -> len_out = 0 ;
0 commit comments