Changeset 2273


Ignore:
Timestamp:
Jul 12, 2009, 2:05:36 AM (10 years ago)
Author:
bruno
Message:

r3225@localhost: bruno | 2009-07-12 01:56:28 +0200
Fix compilation issues

Location:
branches/2.2.10/mondo/src/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-cli.c

    r2271 r2273  
    149149{
    150150    int j;
    151     char tmp[MAX_STR_LEN], *p,
     151    char tmp[MAX_STR_LEN], *p;
    152152    char *comment = NULL;
    153153
  • branches/2.2.10/mondo/src/common/libmondo-files.c

    r2272 r2273  
    214214    char *infname = NULL;
    215215    char *outfname = NULL;
    216     char *tmp NULL;
     216    char *tmp = NULL;
    217217    char incoming[MAX_STR_LEN];
    218218
     
    503503    /*@ buffers ***************************************************** */
    504504    static char output[MAX_STR_LEN];
    505     char *command = NULL
     505    char *command = NULL;
    506506    char *tmp = NULL;
    507507
     
    820820                    mr_asprintf(&command, "ntfsresize --force --info %s|grep '^You might resize at '|cut -d' ' -f5", fname);
    821821                    log_it("command = %s", command);
    822                     mr_asorintf(&tmp, "%s", call_program_and_get_last_line_of_output(command));
     822                    mr_asprintf(&tmp, "%s", call_program_and_get_last_line_of_output(command));
    823823                    mr_free(command);
    824824
     
    11531153    char *nfs_server_ipaddr = NULL;
    11541154    char *tmp = NULL;
    1155     char *command = NULL
     1155    char *command = NULL;
    11561156
    11571157    /*@ pointers ***** */
     
    11741174            "ifconfig | tr '\n' '#' | sed s/##// | tr '#' ' ' | tr '' '\n' | head -n1 | cut -d' ' -f1");
    11751175    mr_asprintf(&nfs_dev, "%s", call_program_and_get_last_line_of_output(command));
    1176     mr-free(command);
     1176    mr_free(command);
    11771177
    11781178    mr_asprintf(&command,
    11791179            "%s", "ifconfig | tr '\n' '#' | sed s/##// | tr '#' ' ' | tr '' '\\n' | head -n1 | tr -s '\t' ' ' | cut -d' ' -f7 | cut -d':' -f2");
    11801180    mr_asprintf(&nfs_client_ipaddr, "%s", call_program_and_get_last_line_of_output(command));
    1181     mr-free(command);
     1181    mr_free(command);
    11821182
    11831183    mr_asprintf(&command,
    11841184            "%s", "ifconfig | tr '\n' '#' | sed s/##// | tr '#' ' ' | tr '' '\\n' | head -n1 | tr -s '\t' ' ' | cut -d' ' -f9 | cut -d':' -f2");
    11851185    mr_asprintf(&nfs_client_netmask, "%s", call_program_and_get_last_line_of_output(command));
    1186     mr-free(command);
     1186    mr_free(command);
    11871187
    11881188    mr_asprintf(&command,
    11891189            "%s", "ifconfig | tr '\n' '#' | sed s/##// | tr '#' ' ' | tr '' '\\n' | head -n1 | tr -s '\t' ' ' | cut -d' ' -f8 | cut -d':' -f2");
    11901190    mr_asprintf(&nfs_client_broadcast, "%s", call_program_and_get_last_line_of_output(command));
    1191     mr-free(command);
     1191    mr_free(command);
    11921192
    11931193    mr_asprintf(&command,
    11941194            "%s", "route -n | grep '^0.0.0.0' | awk '{print $2}'");
    11951195    mr_asprintf(&nfs_client_defgw, "%s", call_program_and_get_last_line_of_output(command));
    1196     mr-free(command);
     1196    mr_free(command);
    11971197
    11981198    if (strlen(nfs_dev) < 2) {
     
    12141214                "%s", "ifconfig %s | awk '{print $5}' | head -n1", nfs_dev);
    12151215        mr_asprintf(&mac_addr, "%s", call_program_and_get_last_line_of_output(command));
    1216         mr-free(command);
     1216        mr_free(command);
    12171217
    12181218        mr_asprintf(&command, "ifconfig | grep -E '%s' | grep -v '%s' | head -n1 | cut -d' ' -f1", mac_addr,nfs_dev);
     
    12211221
    12221222        mr_asprintf(&nfs_dev, call_program_and_get_last_line_of_output(command));
    1223         mr-free(command);
     1223        mr_free(command);
    12241224
    12251225        log_to_screen("Replacing it with %s\n", nfs_dev);
Note: See TracChangeset for help on using the changeset viewer.