From 198a9e1d0885fecb69856058bc1cac669f6b78bc Mon Sep 17 00:00:00 2001 From: nituModi <55805066+nituModi@users.noreply.github.com> Date: Wed, 2 Oct 2019 13:39:17 +0530 Subject: [PATCH] Update example1.c --- example1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example1.c b/example1.c index 0660019..e675a71 100644 --- a/example1.c +++ b/example1.c @@ -7,21 +7,21 @@ void *node_list[2] = { 0 }; void example_enter(void *node, void *object, struct node_operations *ops) { int *ctx = (int *)object; - *ctx = *ctx + 1; + *ctx += 1; printf("example_enter %p %d\n", node, *ctx); } void example_exit(void *node, void *object, struct node_operations *ops) { int *ctx = (int *)object; - *ctx = *ctx + 1; + *ctx += 1; printf("example_exit %p %d\n", node, *ctx); } void example_tick(void *node, void *object, struct node_operations *ops) { int *ctx = (int *)object; - *ctx = *ctx + 1; + *ctx += 1; printf("example_tick %p %d\n", node, *ctx); if (node == node_list[0])