nserver

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 17cdf409917335a299e70d03973aea05ded781e3
parent b20d3221befacb0cfd04829fb9bfd9f1276f7ea4
Author: rsiddharth <s@ricketyspace.net>
Date:   Mon,  2 Dec 2019 21:00:24 -0500

nserver: Update find_function.

* nserver/src/ncmd.c (find_function): Remove qty checks. Done by
call_function.

Diffstat:
nserver/src/ncmd.c | 12------------
1 file changed, 0 insertions(+), 12 deletions(-)

diff --git a/nserver/src/ncmd.c b/nserver/src/ncmd.c @@ -120,28 +120,16 @@ int find_function(struct bstrList *cmd_parts) // find function for cmd_name if (bstricmp(cmd_name, &fcreate) == 0) { - check(cmd_parts->qty == 2, "cmd invalid"); - return NS_CREATE; } else if (bstricmp(cmd_name, &fsample) == 0) { - check(cmd_parts->qty == 3, "cmd invalid"); - return NS_SAMPLE; } else if (bstricmp(cmd_name, &fmean) == 0) { - check(cmd_parts->qty == 2, "cmd invalid"); - return NS_MEAN; } else if (bstricmp(cmd_name, &fdump) == 0) { - check(cmd_parts->qty == 2, "cmd invalid"); - return NS_DUMP; } else if (bstricmp(cmd_name, &fdelete) == 0) { - check(cmd_parts->qty == 2, "cmd invalid"); - return NS_DELETE; } else if (bstricmp(cmd_name, &flist) == 0) { - check(cmd_parts->qty == 1, "cmd invalid"); - return NS_LIST; } else { return NS_NOP;