- /*
- * None of these are really defined for control JCRs, so we
- * simply take the first of each one. This ensures that there
- * will be no null pointer references.
- */
- LockRes();
- jcr->job = (JOB *)GetNextRes(R_JOB, NULL);
- jcr->messages = (MSGS *)GetNextRes(R_MSGS, NULL);
- jcr->client = (CLIENT *)GetNextRes(R_CLIENT, NULL);
- jcr->pool = (POOL *)GetNextRes(R_POOL, NULL);
- jcr->catalog = (CAT *)GetNextRes(R_CATALOG, NULL);
- jcr->store = (STORE *)GetNextRes(R_STORAGE, NULL);
- jcr->fileset = (FILESET *)GetNextRes(R_FILESET, NULL);
- UnlockRes();