19 May 2007 Cts tarihinde, Ulrich Drepper şunları yazmıştı:
> S.Çağlar Onur wrote:
> > -+ struct sockaddr_un client_addr;
> > ++ struct sockaddr client_addr;
>
> This is very wrong. struct sockaddr is basically an abstract type. You
> never allocate objects of this type. Add casts in places where
> client_addr is used.
Irgh, thanks! Here is the updated one;
Signed-off-by: S.Çağlar Onur <caglar@xxxxxxxxxxxxx>
diff -r aee991c7723a tools/vtpm/vtpm.patch
--- a/tools/vtpm/vtpm.patch Wed May 09 16:34:47 2007 +0100
+++ b/tools/vtpm/vtpm.patch Sat May 19 03:00:28 2007 +0300
@@ -579,7 +579,7 @@ diff -uprN tpm_emulator/tpmd.c vtpm/tpmd
+ memset(&client_addr, 0, sizeof(client_addr));
+ client_length = sizeof(client_addr);
+
-+ vtpm_rx_fh = vtpm_tx_fh = accept(sockfd, &client_addr,
&client_length);
++ vtpm_rx_fh = vtpm_tx_fh = accept(sockfd, (struct sockaddr
*)&client_addr, &client_length);
+ }
+#endif
}
Cheers
--
S.Çağlar Onur <caglar@xxxxxxxxxxxxx>
http://cekirdek.pardus.org.tr/~caglar/
Linux is like living in a teepee. No Windows, no Gates and an Apache in house!
signature.asc
Description: This is a digitally signed message part.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|