source: trunk/dports/textproc/glimpse/files/patch-clang.diff @ 138978

Last change on this file since 138978 was 138978, checked in by ryandesign@…, 5 years ago

glimpse: fix build with clang (#42544)

File size: 4.3 KB
  • compress/main_tbuild.c

    Fix build with clang.
    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=171268
    old new  
    2525int
    2626main(argc, argv)
    2727        int     argc;
    28         unsigned char   *argv[];
     28        char    *argv[];
    2929{
    3030        char    comp_dir[MAX_LINE_LEN];
    3131        int     threshold, specialwords;
  • compress/misc.c

    old new  
    288288        return 1;
    289289}
    290290
    291 uninitialize_common()
     291void uninitialize_common()
    292292{
    293293        initialize_common_done = 0;
    294294        return;
  • get_filename.c

    old new  
    481481        return 0;
    482482}
    483483
    484 get_filenames(index_vect, argc, argv, dummylen, dummypat, file_num)
     484void get_filenames(index_vect, argc, argv, dummylen, dummypat, file_num)
    485485int  *index_vect;
    486486int argc; /* the arguments to agrep for -F */
    487487char *argv[];
  • get_index.c

    old new  
    5252}
    5353
    5454/* Unions offset lists list2 with list1 sorted in increasing order (deletes elements from list2) => changes both list1 and list2: f += #elems added */
    55 sorted_union(list1, list2, f, pf, cf)
     55void sorted_union(list1, list2, f, pf, cf)
    5656        struct offsets **list1, **list2;
    5757        int     *f, pf, cf;
    5858{
     
    114114}
    115115
    116116/* Intersects offset lists list2 with list1 sorted in increasing order (deletes elements from list2) => changes both list1 and list2 */
    117 sorted_intersection(filenum, list1, list2, f)
     117void sorted_intersection(filenum, list1, list2, f)
    118118        struct offsets **list1, **list2;
    119119        int     *f;
    120120{
  • index/build_in.c

    old new  
    4444extern struct stat excstbuf;
    4545extern struct stat incstbuf;
    4646
     47void build_hash();
     48void init_hash_table();
    4749void insert_h();
    4850void insert_index();
     51void merge_in(FILE *, FILE *, FILE *);
     52void remove_filename(int, int);
    4953
    5054extern int ICurrentFileOffset;
    5155extern int NextICurrentFileOffset;
     
    124128extern int HashTableSize;
    125129struct token **hash_table; /*[MAX_64K_HASH];*/
    126130
    127 build_index()
     131void build_index()
    128132{
    129133        int     i;
    130134
     
    598602#endif
    599603}
    600604
    601 traverse1()
     605void traverse1()
    602606{
    603607    FILE *i1, *i2, *i3;
    604608    int ret;
     
    780784input: a set of filenames in name_list[], a partition table p_table[]
    781785output: a hash table hash_table[].
    782786-----------------------------------------------------------------------*/
    783 build_hash()
     787void build_hash()
    784788{
    785789    int fd;                          /* opened file number */
    786790    int  i, pn;                  /* pn: current partition */
     
    12291233    my_free(buffer_begin, BLOCK_SIZE + 10);
    12301234}
    12311235
    1232 init_hash_table()
     1236void init_hash_table()
    12331237{
    12341238    int i;
    12351239
     
    14801484extern unsigned char *merge_index_buf;
    14811485
    14821486/* merge index file f1 and f2, then put the result in index file f3 */
    1483 merge_in(f1, f2, f3)
     1487void merge_in(f1, f2, f3)
    14841488FILE *f1, *f2, *f3;
    14851489{
    14861490    int src_mark, dest_mark;
     
    18581862    return;
    18591863}
    18601864
    1861 remove_filename(fileindex, new_partition)
     1865void remove_filename(fileindex, new_partition)
    18621866        int     fileindex, new_partition;
    18631867{
    18641868        if ((fileindex < 0) || (fileindex >= MaxNum24bPartition)) return;
  • index/io.c

    old new  
    360360
    361361
    362362
    363 read_filters(index_dir, dofilter)
     363void read_filters(index_dir, dofilter)
    364364char    *index_dir;
    365365int     dofilter;
    366366{
     
    14501450        return e->index;
    14511451}
    14521452
    1453 insert_filename(name, name_index)
     1453void insert_filename(name, name_index)
    14541454        char    *name;
    14551455        int     name_index;
    14561456{
     
    15021502        (*pe)->index = name_index;
    15031503}
    15041504
    1505 change_filename(name, len, index, newname)
     1505void change_filename(name, len, index, newname)
    15061506        char    *name;
    15071507        int     len;
    15081508        int     index;
     
    15241524        return;
    15251525}
    15261526
    1527 delete_filename(name, name_index)
     1527void delete_filename(name, name_index)
    15281528        char    *name;
    15291529        int     name_index;
    15301530{
  • index/region.c

    old new  
    168168}
    169169
    170170/* Looks for embedded attributes and copies the real attribute into dest */
    171 attr_extract(dest, src)
     171void attr_extract(dest, src)
    172172        char    *dest, *src;
    173173{
    174174        char    *oldsrc = src;
Note: See TracBrowser for help on using the repository browser.