switch (type) {
case LABEL:
if ( (stat = sms_query("get_filesys_by_label", 1, &name,
- StoreInfo, &elem)) != 0) {
+ StoreInfo, (char *)&elem)) != 0) {
com_err(program_name, stat, NULL);
return(NULL);
}
break;
case MACHINE:
if ( (stat = sms_query("get_filesys_by_machine", 1, &name,
- StoreInfo, &elem)) != 0) {
+ StoreInfo, (char *)&elem)) != 0) {
com_err(program_name, stat, NULL);
return(NULL);
}
break;
case GROUP:
if ( (stat = sms_query("get_filesys_by_group", 1, &name,
- StoreInfo, &elem)) != 0) {
+ StoreInfo, (char *)&elem)) != 0) {
com_err(program_name, stat, NULL);
return(NULL);
}
args[ALIAS_NAME] = name;
args[ALIAS_TYPE] = FS_ALIAS_TYPE;
args[ALIAS_TRANS] = "*";
- if ( (stat = sms_query("get_alias", 3, args, StoreInfo, &elem)) != 0) {
+ if ( (stat = sms_query("get_alias", 3, args, StoreInfo,
+ (char *) &elem)) != 0) {
com_err(program_name, stat, " in get_alias.");
return(NULL);
}
* print out values, free memory used and then exit.
*/
- if ( (stat = sms_query("get_alias", 3, args, StoreInfo, &elem)) == 0) {
+ if ( (stat = sms_query("get_alias", 3, args, StoreInfo,
+ (char *)&elem)) == 0) {
top = elem = QueueTop(elem);
while (elem != NULL) {
info = (char **) elem->q_data;
switch (type) {
case MACHINE:
if ( (stat = sms_query("get_machine", 1, &name1,
- StoreInfo, &elem)) != 0) {
+ StoreInfo, (char *)&elem)) != 0) {
com_err(program_name, stat, " in get_machine.");
return(NULL);
}
break;
case CLUSTER:
if ( (stat = sms_query("get_cluster", 1, &name1,
- StoreInfo, &elem)) != 0) {
+ StoreInfo, (char *)&elem)) != 0) {
com_err(program_name, stat, " in get_cluster.");
return(NULL);
}
args[MAP_MACHINE] = name1;
args[MAP_CLUSTER] = name2;
if ( (stat = sms_query("get_machine_to_cluster_map", 2, args,
- StoreInfo, &elem)) != 0) {
+ StoreInfo, (char *)&elem)) != 0) {
com_err(program_name, stat, " in get_machine_to_cluster_map.");
return(NULL);
}
args[CD_NAME] = name1;
args[CD_LABEL] = name2;
if ( (stat = sms_query("get_cluster_data", 2, args,
- StoreInfo, &elem)) != 0) {
+ StoreInfo, (char *)&elem)) != 0) {
com_err(program_name, stat, " in get_cluster_data.");
return(NULL);
}
args[0] = name;
args[1] = "*";
stat = sms_query("get_machine_to_cluster_map", 2, args,
- StoreInfo, &elem);
+ StoreInfo, (char *)&elem);
if (stat && stat != SMS_NO_MATCH) {
com_err(program_name, stat, " in get_machine_to_cluster_map.");
return(DM_NORMAL);
args[MAP_END] = NULL;
stat = sms_query("get_machine_to_cluster_map", CountArgs(args), args,
- StoreInfo, &elem);
+ StoreInfo, (char *)&elem);
if (stat == SMS_NO_MATCH) {
sprintf(buf, "The machine %s is not is the cluster %s.",
args[MAP_MACHINE], args[MAP_CLUSTER]);
args[MAP_MACHINE] = "*";
args[MAP_CLUSTER] = name;
stat = sms_query("get_machine_to_cluster_map", 2, args,
- StoreInfo, &elem);
+ StoreInfo, (char *)&elem);
if (stat && stat != SMS_NO_MATCH) {
com_err(program_name, stat, " in get_machine_to_cluster_map.");
return(DM_NORMAL);