X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=listati%2FMQFortuneClient.c;h=8b8216c46aab21fcd4f9c589ee8ac5c948b02304;hp=84f86c61d9fede64f81bfd038c6e68a8f58585a0;hb=d47f15496fa85c8ec22edcde608f2665ec5b95ae;hpb=b324b7a09e071b2f84a1849d109d4d14f27f44cd;ds=sidebyside diff --git a/listati/MQFortuneClient.c b/listati/MQFortuneClient.c index 84f86c6..8b8216c 100644 --- a/listati/MQFortuneClient.c +++ b/listati/MQFortuneClient.c @@ -8,10 +8,10 @@ int main(int argc, char *argv[]) exit(1); } /* Main body: do request and write result */ - msg_read.mtype = 1; /* type for request is always 1 */ - msg_read.pid = getpid(); /* use pid for communications */ + msg_read.mtype = 1; /* type for request is always 1 */ + msg_read.pid = getpid(); /* use pid for communications */ size = sizeof(msg_read.pid); - msgsnd(msgid, &msg_read, size, 0); /* send request message */ + msgsnd(msgid, &msg_read, size, 0); /* send request message */ msgrcv(msgid, &msg_write, MSGMAX, msg_read.pid, MSG_NOERROR); printf("%s", msg_write.mtext); }