diff options
author | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-07-19 03:03:32 +0000 |
---|---|---|
committer | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-07-19 03:03:32 +0000 |
commit | dcf3914840561f45f4f5a377707c20d098fe8949 (patch) | |
tree | b69d024137f675c24ef1cec9a2b87c5d6a912987 /ACE/tests/XtAthenaReactor_Test.cpp | |
parent | 2ffc5451399d51c893fe4b16d0a691990be4c671 (diff) | |
download | ATCD-dcf3914840561f45f4f5a377707c20d098fe8949.tar.gz |
Thu Jul 19 03:00:57 UTC 2007 Abdullah Sowayan <abdullah.sowayan@lmco.com>
Diffstat (limited to 'ACE/tests/XtAthenaReactor_Test.cpp')
-rw-r--r-- | ACE/tests/XtAthenaReactor_Test.cpp | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/ACE/tests/XtAthenaReactor_Test.cpp b/ACE/tests/XtAthenaReactor_Test.cpp index cf0530ee552..3bba4a52a6c 100644 --- a/ACE/tests/XtAthenaReactor_Test.cpp +++ b/ACE/tests/XtAthenaReactor_Test.cpp @@ -94,7 +94,7 @@ client (void *) ACE_SOCK_Stream stream; ACE_SOCK_Connector connector; - sprintf (buf, "Client: the life was good!"); + ACE_OS::sprintf (buf, "Client: the life was good!"); mes_len = (int) htonl (ACE_OS::strlen (buf) + 1); @@ -132,11 +132,11 @@ inc_count (Widget, XtPointer client_data, XtPointer) { char new_string[80]; - sprintf (new_string, - "Events: [%d] [%d] [%d]", - count1++, - count2, - count3); + ACE_OS::sprintf (new_string, + "Events: [%d] [%d] [%d]", + count1++, + count2, + count3); set_label((Widget) client_data, new_string); } @@ -149,11 +149,11 @@ inc_tmo (void *w,XtIntervalId *) if (count2 > 10) ACE_OS::exit (0); - sprintf (new_string, - "Events: [%d] [%d] [%d]", - count1, - count2++, - count3); + ACE_OS::sprintf (new_string, + "Events: [%d] [%d] [%d]", + count1, + count2++, + count3); set_label((Widget) w, new_string); @@ -170,11 +170,11 @@ public: const void *arg) { char new_string[80]; - sprintf (new_string, - "Events: [%d] [%d] [%d]", - count1, - count2, - count3++); + ACE_OS::sprintf (new_string, + "Events: [%d] [%d] [%d]", + count1, + count2, + count3++); set_label((Widget) arg, new_string); return 0; } @@ -183,8 +183,10 @@ public: class Connection_Handler : public ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH> { public: + //FUZZ: disable check_for_lack_ACE_OS virtual int open (void *) { + //FUZZ: enable check_for_lack_ACE_OS char buf[100]; int head; ssize_t ret = this->peer ().recv_n ((char *) &head, |