aboutsummaryrefslogtreecommitdiffstats
path: root/P2/lib
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-27 14:07:56 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-27 14:07:56 -0500
commit16e534fdc30615864bf3a60943a9daa417ea5cb1 (patch)
treed6976960f3e75b6b6002b066ee7717c012d9bac8 /P2/lib
parentReplace old calls (diff)
downloadcsci4061-16e534fdc30615864bf3a60943a9daa417ea5cb1.tar
csci4061-16e534fdc30615864bf3a60943a9daa417ea5cb1.tar.gz
csci4061-16e534fdc30615864bf3a60943a9daa417ea5cb1.tar.bz2
csci4061-16e534fdc30615864bf3a60943a9daa417ea5cb1.tar.lz
csci4061-16e534fdc30615864bf3a60943a9daa417ea5cb1.tar.xz
csci4061-16e534fdc30615864bf3a60943a9daa417ea5cb1.tar.zst
csci4061-16e534fdc30615864bf3a60943a9daa417ea5cb1.zip
Fix arrangment + comment
Diffstat (limited to 'P2/lib')
-rw-r--r--P2/lib/utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index 6fa454e..ea2ed3d 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -1,8 +1,7 @@
#include "utils.h"
int openQueue() {
- key_t Qkey = ftok("4061 Project 2 SS", 'S');
- int id = msgget(Qkey, 0666 | IPC_CREAT);
+ int id = msgget(ftok("4061 Project 2 SS", 'S'), 0666 | IPC_CREAT);
if (id < 0)
{
perror("Cannot open queue.\n");