From 7576881741bae350823ee79a71a81fe3de918605 Mon Sep 17 00:00:00 2001 From: joerg Date: Sat, 2 Mar 2013 18:29:03 +0000 Subject: Consistently return values from non-void functions. --- cad/tkgate/distinfo | 4 +++- cad/tkgate/patches/patch-src_tkgate_edit.c | 13 +++++++++++++ cad/tkgate/patches/patch-src_tkgate_tclfuncs.c | 13 +++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 cad/tkgate/patches/patch-src_tkgate_edit.c create mode 100644 cad/tkgate/patches/patch-src_tkgate_tclfuncs.c (limited to 'cad/tkgate') diff --git a/cad/tkgate/distinfo b/cad/tkgate/distinfo index f6816d0ef81..c64ef3bea92 100644 --- a/cad/tkgate/distinfo +++ b/cad/tkgate/distinfo @@ -1,7 +1,9 @@ -$NetBSD: distinfo,v 1.6 2012/08/21 21:37:56 marino Exp $ +$NetBSD: distinfo,v 1.7 2013/03/02 18:29:03 joerg Exp $ SHA1 (tkgate-1.6i.tgz) = 6eece2eb4aaa2f45c2b1c68b9c5b79a76b3bb084 RMD160 (tkgate-1.6i.tgz) = 651ac3194c7b2b8dc8fc8fb28d409672586d4f98 Size (tkgate-1.6i.tgz) = 1459011 bytes SHA1 (patch-aa) = b285f85cf8e894fa02714a5bc2c2277837395bf9 SHA1 (patch-ab) = 8c0fb6b4f2e9e4fb7af2621fb6546e4e99ba69e5 +SHA1 (patch-src_tkgate_edit.c) = d955226ff73d232310dc3f4f9b7e2381432b81de +SHA1 (patch-src_tkgate_tclfuncs.c) = e7d9f0fef83c8c1b66eb6b510493908360997608 diff --git a/cad/tkgate/patches/patch-src_tkgate_edit.c b/cad/tkgate/patches/patch-src_tkgate_edit.c new file mode 100644 index 00000000000..7e21a69c651 --- /dev/null +++ b/cad/tkgate/patches/patch-src_tkgate_edit.c @@ -0,0 +1,13 @@ +$NetBSD: patch-src_tkgate_edit.c,v 1.1 2013/03/02 18:29:03 joerg Exp $ + +--- src/tkgate/edit.c.orig 2013-03-01 14:52:29.000000000 +0000 ++++ src/tkgate/edit.c +@@ -747,7 +747,7 @@ char *PrintNet(char *p,GNet *net) + + if (!net) { + p += sprintf(p,"NetID: *null*\n"); +- return; ++ return NULL; + } + + name = net->signame ? net->signame : "*none*"; diff --git a/cad/tkgate/patches/patch-src_tkgate_tclfuncs.c b/cad/tkgate/patches/patch-src_tkgate_tclfuncs.c new file mode 100644 index 00000000000..7ea9e2a143f --- /dev/null +++ b/cad/tkgate/patches/patch-src_tkgate_tclfuncs.c @@ -0,0 +1,13 @@ +$NetBSD: patch-src_tkgate_tclfuncs.c,v 1.1 2013/03/02 18:29:03 joerg Exp $ + +--- src/tkgate/tclfuncs.c.orig 2013-03-01 14:52:58.000000000 +0000 ++++ src/tkgate/tclfuncs.c +@@ -1525,7 +1525,7 @@ int gat_gotoCPathNet(ClientData _d,Tcl_I + p = argv[1]; + + n = GModuleDef_findNet(XGate.es->env,p); +- if (!n) return; ++ if (!n) return TCL_ERROR; + + wn1 = n->driver->nodes; + wn2 = wn1->out ? wn1->out : wn1->in; -- cgit v1.2.3