diff options
author | joerg <joerg@pkgsrc.org> | 2013-03-02 18:29:03 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-03-02 18:29:03 +0000 |
commit | cbca2f9d9e3be86251e62d644ee56167ad4a4069 (patch) | |
tree | a1efa44f25a22c43108a7b58e29aba19be12e38b /cad | |
parent | cb724b1093da1feb026bd0e81e1e4d119970a17b (diff) | |
download | pkgsrc-cbca2f9d9e3be86251e62d644ee56167ad4a4069.tar.gz |
Consistently return values from non-void functions.
Diffstat (limited to 'cad')
-rw-r--r-- | cad/tkgate/distinfo | 4 | ||||
-rw-r--r-- | cad/tkgate/patches/patch-src_tkgate_edit.c | 13 | ||||
-rw-r--r-- | cad/tkgate/patches/patch-src_tkgate_tclfuncs.c | 13 |
3 files changed, 29 insertions, 1 deletions
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; |