]> andersk Git - moira.git/commitdiff
Added some casts for ANSI standard.
authorqjb <qjb>
Sun, 7 Aug 1988 17:02:46 +0000 (17:02 +0000)
committerqjb <qjb>
Sun, 7 Aug 1988 17:02:46 +0000 (17:02 +0000)
clients/moira/attach.c
clients/moira/cluster.c

index 506a3dd18d3258ac928a06178d61f53cf810df56..569362065878ccc121aeef90ab85bb725c5308b1 100644 (file)
@@ -95,21 +95,21 @@ char *name;
     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);
        }
@@ -118,7 +118,8 @@ char *name;
        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);
        }
@@ -445,7 +446,8 @@ char **argv;
  * 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;          
index 5b3183bc0e19c57cdc2d61ef99539fcf2eecf696..54802521b06bdb2441c2ff1b764c9bd7f54fa979 100644 (file)
@@ -187,14 +187,14 @@ char * name1, *name2;
     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);
        }
@@ -203,7 +203,7 @@ char * name1, *name2;
        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);
        }
@@ -212,7 +212,7 @@ char * name1, *name2;
        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);
        }
@@ -436,7 +436,7 @@ Bool ask_user;
     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);
@@ -672,7 +672,7 @@ char ** argv;
     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]);
@@ -818,7 +818,7 @@ Bool ask_first;
     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);
This page took 0.219766 seconds and 5 git commands to generate.