Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/bouyer-quota2]: src/usr.bin/quota Use prop_array_add_and_rel()
details: https://anonhg.NetBSD.org/src/rev/bce255357c69
branches: bouyer-quota2
changeset: 761136:bce255357c69
user: bouyer <bouyer%NetBSD.org@localhost>
date: Wed Feb 09 10:21:36 2011 +0000
description:
Use prop_array_add_and_rel()
diffstat:
usr.bin/quota/getvfsquota.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 12949d06a7ea -r bce255357c69 usr.bin/quota/getvfsquota.c
--- a/usr.bin/quota/getvfsquota.c Wed Feb 09 10:21:02 2011 +0000
+++ b/usr.bin/quota/getvfsquota.c Wed Feb 09 10:21:36 2011 +0000
@@ -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],
Home |
Main Index |
Thread Index |
Old Index