Corretti i commenti ai listati in una forma piu' leggibile (spero).
[gapil.git] / listati / MQFortuneClient.c
index 84f86c61d9fede64f81bfd038c6e68a8f58585a0..8b8216c46aab21fcd4f9c589ee8ac5c948b02304 100644 (file)
@@ -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);
 }