diff --git a/c/ServerNBTHR/square.x b/c/ServerNBTHR/square.x index 7a38e93..794e35d 100644 --- a/c/ServerNBTHR/square.x +++ b/c/ServerNBTHR/square.x @@ -1,11 +1,11 @@ struct square_in { - long arg1; + long arg1; }; struct square_out { - long res1; + long res1; }; program SQUARE_PROG { - version SQUARE_VERS { - square_out SQUAREPROC(square_in) = 1; - } = 2; + version SQUARE_VERS { + square_out SQUAREPROC(square_in) = 1; + } = 2 ; } = 0x31230000; diff --git a/c/ServerNBTHR/square_svc.c b/c/ServerNBTHR/square_svc.c index 198416b..e10fe8b 100644 --- a/c/ServerNBTHR/square_svc.c +++ b/c/ServerNBTHR/square_svc.c @@ -110,7 +110,7 @@ static void square_prog_2(struct svc_req *rqstp, register SVCXPRT * transp) struct data_str { struct svc_req *rqstp; SVCXPRT *transp; - } *data_ptr = (struct data_str *)malloc(sizeof(struct data_str)); { + } *data_ptr = (struct data_str *)malloc(sizeof(struct data_str); { /* Упаковка данных в структуру для передачи ссылки на нее,