summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorjobol <jobol@nonadev.net>2016-05-26 18:12:54 +0200
committerjobol <jobol@nonadev.net>2016-05-26 18:12:54 +0200
commitf0f93f4d790343c4ae51ca55f165886c01358c89 (patch)
treeb519108a26728efdbb68b3cc85305085e5203945 /plugins
parentebb9bd69a97516763d5d9203245ded592b825a86 (diff)
rename parameter to argument
Signed-off-by: jobol <jobol@nonadev.net>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/samples/tic-tac-toe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/samples/tic-tac-toe.c b/plugins/samples/tic-tac-toe.c
index a1630c50..67cddcb6 100644
--- a/plugins/samples/tic-tac-toe.c
+++ b/plugins/samples/tic-tac-toe.c
@@ -364,11 +364,11 @@ static void move(struct afb_req req)
board = board_of_req(req);
INFO(afbitf, "method 'move' called for boardid %d", board->id);
- /* retrieves the parameters of the move */
+ /* retrieves the arguments of the move */
index = afb_req_value(req, "index");
i = index == NULL ? -1 : atoi(index);
- /* checks validity of parameters */
+ /* checks validity of arguments */
if (i < 0 || i > 8) {
WARNING(afbitf, "can't move to %s: %s", index?:"?", index?"wrong value":"not set");
afb_req_fail(req, "error", "bad request");
@@ -413,11 +413,11 @@ static void level(struct afb_req req)
board = board_of_req(req);
INFO(afbitf, "method 'level' called for boardid %d", board->id);
- /* retrieves the parameters */
+ /* retrieves the arguments */
level = afb_req_value(req, "level");
l = level == NULL ? -1 : atoi(level);
- /* check validity of parameters */
+ /* check validity of arguments */
if (l < 1 || l > 10) {
WARNING(afbitf, "can't set level to %s: %s", level?:"?", level?"wrong value":"not set");
afb_req_fail(req, "error", "bad request");
@@ -447,7 +447,7 @@ static void join(struct afb_req req)
board = board_of_req(req);
INFO(afbitf, "method 'join' called for boardid %d", board->id);
- /* retrieves the parameters */
+ /* retrieves the arguments */
id = afb_req_value(req, "boardid");
if (id == NULL)
goto bad_request;