aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-11-17 15:07:36 -0600
committerMatt Strapp <strap012@umn.edu>2020-11-17 15:07:36 -0600
commit204c6eaa817d43ef8ecc80c0c77676b2ecfb46b3 (patch)
tree5b4dd7db5ab144658b19883ac570eb62ea439c12
parentadd todo (diff)
downloadcsci4061-204c6eaa817d43ef8ecc80c0c77676b2ecfb46b3.tar
csci4061-204c6eaa817d43ef8ecc80c0c77676b2ecfb46b3.tar.gz
csci4061-204c6eaa817d43ef8ecc80c0c77676b2ecfb46b3.tar.bz2
csci4061-204c6eaa817d43ef8ecc80c0c77676b2ecfb46b3.tar.lz
csci4061-204c6eaa817d43ef8ecc80c0c77676b2ecfb46b3.tar.xz
csci4061-204c6eaa817d43ef8ecc80c0c77676b2ecfb46b3.tar.zst
csci4061-204c6eaa817d43ef8ecc80c0c77676b2ecfb46b3.zip
change error handler
Diffstat (limited to '')
-rw-r--r--P3/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/P3/server.c b/P3/server.c
index f6db56d..7c863f2 100644
--- a/P3/server.c
+++ b/P3/server.c
@@ -246,7 +246,7 @@ int main(int argc, char **argv) {
printf("Number of dispatchers is invalid. It must be greater than 0 or less than 101.\n");
return -1;
}
- if (qLen > MAX_queue_len || qLen <= 0) {
+ if (qLen > MAX_queue_len || qLen < 1) {
printf("Queue length is invalid.\n");
return -1;
}