diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-11-08 17:05:23 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-11-08 17:05:23 +0000 |
commit | 4c88b77612a3e2a26c2df79e0c18e23e21916e0e (patch) | |
tree | becd611b2d35c19503af00d8d08e55e255839804 /examples/IPC_SAP/FILE_SAP | |
parent | 4d844b1f5b5d4c2ea5fcf469d0f76b1ad7119ee1 (diff) | |
download | ATCD-4c88b77612a3e2a26c2df79e0c18e23e21916e0e.tar.gz |
ChangeLogTag:Wed Nov 8 09:02:10 2000 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'examples/IPC_SAP/FILE_SAP')
-rw-r--r-- | examples/IPC_SAP/FILE_SAP/client.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/IPC_SAP/FILE_SAP/client.cpp b/examples/IPC_SAP/FILE_SAP/client.cpp index dacbb126193..2c70d643ece 100644 --- a/examples/IPC_SAP/FILE_SAP/client.cpp +++ b/examples/IPC_SAP/FILE_SAP/client.cpp @@ -7,7 +7,7 @@ ACE_RCSID(FILE_SAP, client, "$Id$") -int +int main (int argc, char *argv[]) { if (argc < 3 || argc > 3) @@ -23,7 +23,7 @@ main (int argc, char *argv[]) ACE_FILE_Connector con; if (con.connect (cli_file, - ACE_FILE_Addr (argv[1]), + ACE_FILE_Addr (argv[1]), 0, ACE_Addr::sap_any, 0, O_RDWR|O_APPEND|O_CREAT, 0666) == -1) @@ -49,7 +49,7 @@ main (int argc, char *argv[]) else ACE_OS::printf ("fileinfo : mode = %o\nno of links = %lu\nsize = %lu\n", fileinfo.mode_ & 0777, - fileinfo.nlink_, + ACE_static_cast(unsigned long,fileinfo.nlink_), fileinfo.size_); off_t fpos = cli_file.position (); @@ -62,7 +62,7 @@ main (int argc, char *argv[]) else ACE_OS::printf ("current filepointer is at %ld\n", fpos); - + if (cli_file.position (0, SEEK_SET) == -1) ACE_ERROR_RETURN ((LM_ERROR, |