Changeset 1369


Ignore:
Timestamp:
Apr 30, 2007, 2:04:01 AM (12 years ago)
Author:
bruno
Message:

Remove unused function + compilation fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-stream.c

    r1365 r1369  
    1515#include "mr_mem.h"
    1616#include "mr_msg.h"
     17#include "mr_list.h"
    1718
    1819#include "mondostructures.h"
     
    9596 * made of a list of @p s_tapecat_entry.
    9697 * */
    97 static struct mr_list *g_tapecatalog;
     98static struct mr_list *tapecatalog;
    9899
    99100/* function to free the fname field allocated in te */
     
    177178    }
    178179    mr_free(blk);
    179     mr_free_fname(g_tapecatalog);
    180     mr_list_free(g_tapecatalog);
     180    mr_list_free(tapecatalog);
    181181    return (retval);
    182182}
     
    226226    paranoid_pclose(g_tape_stream);
    227227    log_it("closeout_tape() -- leaving");
    228     elt = g_tapecatalog->first;
     228    elt = tapecatalog->first;
    229229    while (elt != NULL) {
    230230        te = (struct s_tapecat_entry *)elt->data;
     
    236236    }
    237237    mr_free(blk);
    238     mr_free_fname(g_tapecatalog);
    239     mr_list_free(g_tapecatalog);
     238    mr_list_free(tapecatalog);
    240239    return (retval);
    241240}
     
    508507    long long final_alleged_writeK, final_projected_certain_writeK,
    509508        final_actually_certain_writeK = 0, cposK, bufsize_K;
    510     int last, curr, i;
     509    int last, i;
    511510    t_archtype type = other;
    512511    char *command = NULL;
     
    536535    mr_free(command);
    537536
    538     last = mr_list_length(g_tapecatalog) - 1;
     537    last = mr_list_length(tapecatalog) - 1;
    539538    if (last <= 0) {
    540539        iamhere("Too early to start deleting from collection.");
    541540        return (0);
    542541    }
    543     elt = g_tapecatalog->last;
     542    elt = tapecatalog->last;
    544543    te = (struct s_tapecat_entry *)elt->data;
    545544    final_alleged_writeK = te->tape_posK;
     
    640639
    641640    assert_string_is_neither_NULL_nor_zerolength(bkpinfo->media_device);
    642     mr_list_alloc(g_tapecatalog);
     641    mr_list_alloc(tapecatalog);
    643642    g_tape_posK = 0;
    644643    if (g_tape_stream) {
     
    736735    /*  initialise the catalog */
    737736    g_current_media_number = 1;
    738     mr_list_alloc(g_tapecatalog);
     737    mr_list_alloc(tapecatalog);
    739738    /* log stuff */
    740739    log_it("Opening OUT cdstream with the command");
     
    766765        return (0);
    767766    }
    768     mr_list_alloc(g_tapecatalog);
     767    mr_list_alloc(tapecatalog);
    769768    g_tape_posK = 0;
    770769
     
    10851084
    10861085    // returns the index of the record we've just added
    1087     return (mr_list_length(g_tapecatalog));
     1086    return (mr_list_length(tapecatalog));
    10881087}
    10891088
     
    13581357
    13591358    mr_msg(2, "I am now writing back catalog to tape");
    1360     elt = g_tapecatalog->first;
     1359    elt = tapecatalog->first;
    13611360    while (elt != NULL) {
    13621361        te = (struct s_tapecat_entry *) elt->data;
Note: See TracChangeset for help on using the changeset viewer.