Module Name: src
Committed By: bouyer
Date: Wed Feb 9 10:21:36 UTC 2011
Modified Files:
src/usr.bin/quota [bouyer-quota2]: getvfsquota.c
Log Message:
Use prop_array_add_and_rel()
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 src/usr.bin/quota/getvfsquota.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/quota/getvfsquota.c
diff -u src/usr.bin/quota/getvfsquota.c:1.1.2.2 src/usr.bin/quota/getvfsquota.c:1.1.2.3
--- src/usr.bin/quota/getvfsquota.c:1.1.2.2 Sun Jan 30 19:38:45 2011
+++ src/usr.bin/quota/getvfsquota.c Wed Feb 9 10:21:36 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: getvfsquota.c,v 1.1.2.2 2011/01/30 19:38:45 bouyer Exp $ */
+/* $NetBSD: getvfsquota.c,v 1.1.2.3 2011/02/09 10:21:36 bouyer Exp $ */
/*-
* Copyright (c) 2011 Manuel Bouyer
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: getvfsquota.c,v 1.1.2.2 2011/01/30 19:38:45 bouyer Exp $");
+__RCSID("$NetBSD: getvfsquota.c,v 1.1.2.3 2011/02/09 10:21:36 bouyer Exp $");
#include <stdio.h>
#include <stdlib.h>
@@ -75,9 +75,8 @@
if (!ret)
err(1, "prop_dictionary_set(id)");
- if (!prop_array_add(datas, data))
+ if (!prop_array_add_and_rel(datas, data))
err(1, "prop_array_add(data)");
- prop_object_release(data);
if (!quota2_prop_add_command(cmds, "get", qfextension[type], datas))
err(1, "prop_add_command");
if (!quota2_prop_add_command(cmds, "get version", qfextension[type],