contains subcontainers.
Don't allow a machine to be assigned to more than one container.
EXEC SQL FETCH csr_ucon INTO :childname, :childid;
if (sqlca.sqlcode)
break;
-
+
+ strcpy(childname, strtrim(childname));
/* concatenate the new parent name with the existing sub-container name
* we get the sub-containers new name */
tmpchar = childname + strlen(name);
};
static struct validate amcn_validate = /* for amtn and dmfn */
+{
+ amcn_valobj,
+ 2,
+ "mach_id",
+ "mach_id = %d",
+ 1,
+ 0,
+ access_container,
+ 0,
+ set_mach_modtime_by_id,
+};
+
+static struct validate dmcn_validate = /* for amtn and dmfn */
{
amcn_valobj,
2,
"mach_id = %d AND cnt_id = %d",
2,
NULL,
- &amcn_validate,
+ &dmcn_validate,
},
{