aboutsummaryrefslogtreecommitdiffstats
path: root/src/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stack.c')
-rw-r--r--src/stack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stack.c b/src/stack.c
index 0cd95b3..6374d7e 100644
--- a/src/stack.c
+++ b/src/stack.c
@@ -60,7 +60,7 @@ int ctl_stack_isEmptyX(ppcvoid q){
return (getHead(*q)->top == NULL ? 1 : 0);
}
-pcvoid ctl_stack_addX(ppvoid q, pcvoid data){
+int ctl_stack_addX(ppvoid q, pcvoid data){
StackHead* head = getHead(*q);
StackNode* temp = (StackNode*)ctl_malloc(getSize(*q));
temp->head = head;
@@ -68,7 +68,7 @@ pcvoid ctl_stack_addX(ppvoid q, pcvoid data){
memcpy(temp->buf, data, head->size);
head->top = temp;
*q = pVoid(head->top->buf);
- return *q;
+ return 1;
}
int ctl_stack_delX(ppvoid q){
StackHead* head = getHead(*q);