FreeCalypso > hg > ueda-linux
comparison ueda/sverp-bind/enterinst.c @ 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 | 068ea2458c5d |
children | ce887659d12e |
comparison
equal
deleted
inserted
replaced
19:1d4c693b8f35 | 20:dda8e455c863 |
---|---|
2 #include <stdlib.h> | 2 #include <stdlib.h> |
3 #include <string.h> | 3 #include <string.h> |
4 #include <strings.h> | 4 #include <strings.h> |
5 #include "struct.h" | 5 #include "struct.h" |
6 | 6 |
7 extern char *copystr(); | |
7 extern struct instance *enter_instance(); | 8 extern struct instance *enter_instance(); |
8 | 9 |
9 process_hier_attr(oc, hier) | 10 process_hier_attr(oc, hier) |
10 register struct outcomp *oc; | 11 register struct outcomp *oc; |
11 char *hier; | 12 char *hier; |
62 if (*cp) | 63 if (*cp) |
63 *cp++ = '\0'; | 64 *cp++ = '\0'; |
64 } | 65 } |
65 inst = enter_instance(instname); | 66 inst = enter_instance(instname); |
66 inst->outcomp = oc; | 67 inst->outcomp = oc; |
68 if (slot) | |
69 slot = copystr(slot); | |
67 inst->slot = slot; | 70 inst->slot = slot; |
68 } | 71 } |
69 fclose(stream); | 72 fclose(stream); |
70 } | 73 } |