mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-05 18:58:55 -04:00
16 lines
467 B
C
16 lines
467 B
C
$NetBSD: patch-libcnary_node.c,v 1.1 2012/04/22 16:11:13 wiz Exp $
|
|
|
|
Non-void functions need return values.
|
|
|
|
--- libcnary/node.c.orig 2012-01-11 14:29:30.000000000 +0000
|
|
+++ libcnary/node.c
|
|
@@ -104,7 +104,7 @@ int node_detach(node_t* parent, node_t*
|
|
|
|
int node_insert(node_t* parent, unsigned int index, node_t* child)
|
|
{
|
|
- if (!parent || !child) return;
|
|
+ if (!parent || !child) return -1;
|
|
child->isLeaf = TRUE;
|
|
child->isRoot = FALSE;
|
|
child->parent = parent;
|