Source-Changes-HG archive

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

[src/trunk]: src/sys/net Return a sensible error code in the previous.



details:   https://anonhg.NetBSD.org/src/rev/c98188ed2fe4
branches:  trunk
changeset: 554475:c98188ed2fe4
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Tue Oct 28 20:13:23 2003 +0000

description:
Return a sensible error code in the previous.

diffstat:

 sys/net/if_gif.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2048c65bba9d -r c98188ed2fe4 sys/net/if_gif.c
--- a/sys/net/if_gif.c  Tue Oct 28 20:12:00 2003 +0000
+++ b/sys/net/if_gif.c  Tue Oct 28 20:13:23 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_gif.c,v 1.43 2003/10/25 18:29:12 christos Exp $     */
+/*     $NetBSD: if_gif.c,v 1.44 2003/10/28 20:13:23 mycroft Exp $      */
 /*     $KAME: if_gif.c,v 1.76 2001/08/20 02:01:02 kjc Exp $    */
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_gif.c,v 1.43 2003/10/25 18:29:12 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_gif.c,v 1.44 2003/10/28 20:13:23 mycroft Exp $");
 
 #include "opt_inet.h"
 #include "opt_iso.h"
@@ -871,7 +871,7 @@
                break;
 #endif
        default:
-               error = 0;
+               error = EINVAL;
                break;
        }
        if (error) {



Home | Main Index | Thread Index | Old Index