From 5eb27bc4fd642faab301c602caae79158478f809 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Mon, 2 May 2011 12:40:13 +0400 Subject: [PATCH] =?UTF-8?q?ServerNBTHR=20=D0=B3=D0=BE=D1=82=D0=BE=D0=B2=20?= =?UTF-8?q?=3D)=20=D0=B8=20=D1=81=D0=BE=D0=B1=D0=B8=D1=80=D0=B0=D0=B5?= =?UTF-8?q?=D1=82=D1=81=D1=8F=20=D1=83=D1=81=D0=BF=D0=B5=D1=88=D0=BD=D0=BE?= =?UTF-8?q?=20=D0=B3=D1=8B-=D0=B3=D1=8B-=D0=B3=D1=8B))?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- c/ServerNBTHR/square.x | 10 +++++----- c/ServerNBTHR/square_svc.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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); { /* Упаковка данных в структуру для передачи ссылки на нее,