Mercurial > hg > FederatedLinda
changeset 74:be8bc83c001a
fix pointers...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 23 Oct 2009 16:47:33 +0900 |
parents | ad401b7c97bb |
children | 5b1f099da593 |
files | examples/filesend/writer.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/filesend/writer.c Fri Oct 23 14:16:59 2009 +0900 +++ b/examples/filesend/writer.c Fri Oct 23 16:47:33 2009 +0900 @@ -42,8 +42,10 @@ int seq; seq = psx_in(tid, 65535); - psx_sync_n(); - data = (char *)psx_reply(seq); + do { + psx_sync_n(); + data = (char *)psx_reply(seq); + } while(data==0); serial = atoi(data + LINDA_HEADER_SIZE); psx_free(data);