Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/examples/puffs/dtfs Use puffs_kernerr_abort as the err...



details:   https://anonhg.NetBSD.org/src/rev/954147839676
branches:  trunk
changeset: 749684:954147839676
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Dec 05 20:54:40 2009 +0000

description:
Use puffs_kernerr_abort as the error handler.

diffstat:

 share/examples/puffs/dtfs/dtfs.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r df4a0ac483d0 -r 954147839676 share/examples/puffs/dtfs/dtfs.c
--- a/share/examples/puffs/dtfs/dtfs.c  Sat Dec 05 20:54:10 2009 +0000
+++ b/share/examples/puffs/dtfs/dtfs.c  Sat Dec 05 20:54:40 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dtfs.c,v 1.40 2009/12/04 13:43:28 pooka Exp $  */
+/*     $NetBSD: dtfs.c,v 1.41 2009/12/05 20:54:40 pooka Exp $  */
 
 /*
  * Copyright (c) 2006  Antti Kantee.  All Rights Reserved.
@@ -239,6 +239,7 @@
        if (maxreqsize != MAXREQMAGIC)
                puffs_setmaxreqlen(pu, maxreqsize);
 
+       puffs_set_errnotify(pu, puffs_kernerr_abort);
        if (detach)
                if (puffs_daemon(pu, 1, 1) == -1)
                        err(1, "puffs_daemon");



Home | Main Index | Thread Index | Old Index