X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=listati%2FMQFortuneClient.c;h=8b8216c46aab21fcd4f9c589ee8ac5c948b02304;hp=84f86c61d9fede64f81bfd038c6e68a8f58585a0;hb=d25090faca15102552d77c38161a8a34b0bac41e;hpb=06661f47754a536098afe2b30cb04469918f2fa3 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); }