You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2002/01/16 21:53:00 UTC
cvs commit: apr/test testshmconsumer.c testshmproducer.c
trawick 02/01/16 12:53:00
Modified: test testshmconsumer.c testshmproducer.c
Log:
get rid of warnings about unused functions
Revision Changes Path
1.2 +0 -7 apr/test/testshmconsumer.c
Index: testshmconsumer.c
===================================================================
RCS file: /home/cvs/apr/test/testshmconsumer.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- testshmconsumer.c 12 Jan 2002 19:58:42 -0000 1.1
+++ testshmconsumer.c 16 Jan 2002 20:52:59 -0000 1.2
@@ -94,13 +94,6 @@
fprintf(stdout, "done waiting on mailboxes...\n");
}
-static void msgput(int boxnum, char *msg)
-{
- fprintf(stdout, "Sending message to box %d\n", boxnum);
- apr_cpystrn(boxes[boxnum].msg, msg, strlen(msg));
- boxes[boxnum].msgavail = 1;
-}
-
int main(void)
{
apr_status_t rv;
1.2 +0 -17 apr/test/testshmproducer.c
Index: testshmproducer.c
===================================================================
RCS file: /home/cvs/apr/test/testshmproducer.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- testshmproducer.c 12 Jan 2002 19:58:42 -0000 1.1
+++ testshmproducer.c 16 Jan 2002 20:53:00 -0000 1.2
@@ -77,23 +77,6 @@
#define SHARED_SIZE (apr_size_t)(N_BOXES * sizeof(mbox))
#define SHARED_FILENAME "/tmp/apr.testshm.shm"
-static void msgwait(int sleep_sec, int first_box, int last_box)
-{
- int i;
- apr_time_t start = apr_time_now();
- while (apr_time_now() - start < sleep_sec * APR_USEC_PER_SEC) {
- for (i = first_box; i < last_box; i++) {
- if (boxes[i].msgavail) {
- fprintf(stdout, "received a message in box %d, message was: %s\n",
- i, boxes[i].msg);
- boxes[i].msgavail = 0; /* reset back to 0 */
- }
- }
- apr_sleep(1*APR_USEC_PER_SEC);
- }
- fprintf(stdout, "done waiting on mailboxes...\n");
-}
-
static void msgput(int boxnum, char *msg)
{
fprintf(stdout, "Sending message to box %d\n", boxnum);