changeset 20:dda8e455c863

unet-bind works to the point of reporting unbound instances
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sun, 02 Aug 2015 03:23:44 +0000
parents 1d4c693b8f35
children f7b09a54c2ce
files ueda/libunet/unetrd.c ueda/sverp-bind/enterinst.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ueda/libunet/unetrd.c	Sun Aug 02 03:09:15 2015 +0000
+++ b/ueda/libunet/unetrd.c	Sun Aug 02 03:23:44 2015 +0000
@@ -31,7 +31,7 @@
 {
 	char *cp;
 
-	for (cp = rest; isspace(cp); cp++)
+	for (cp = rest; isspace(*cp); cp++)
 		;
 	if (*cp == '\0' || *cp == '#') {
 		fprintf(stderr, "%s line %d: a name is expected after %s\n",
@@ -61,7 +61,7 @@
 {
 	char *cp;
 
-	for (cp = rest; isspace(cp); cp++)
+	for (cp = rest; isspace(*cp); cp++)
 		;
 	if (*cp == '\0' || *cp == '#') {
 		fprintf(stderr, "%s line %d: a name is expected after %s\n",
--- a/ueda/sverp-bind/enterinst.c	Sun Aug 02 03:09:15 2015 +0000
+++ b/ueda/sverp-bind/enterinst.c	Sun Aug 02 03:23:44 2015 +0000
@@ -4,6 +4,7 @@
 #include <strings.h>
 #include "struct.h"
 
+extern char *copystr();
 extern struct instance *enter_instance();
 
 process_hier_attr(oc, hier)
@@ -64,6 +65,8 @@
 		}
 		inst = enter_instance(instname);
 		inst->outcomp = oc;
+		if (slot)
+			slot = copystr(slot);
 		inst->slot = slot;
 	}
 	fclose(stream);