Switch to unified view

a/src/utils/fileudi.cpp b/src/utils/fileudi.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: fileudi.cpp,v 1.1 2008-07-28 10:20:20 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: fileudi.cpp,v 1.2 2008-07-28 12:24:15 dockes Exp $ (C) 2005 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
98
// Compute the unique term used to link documents to their file-system source:
98
// Compute the unique term used to link documents to their file-system source:
99
// Hashed path + possible internal path
99
// Hashed path + possible internal path
100
void make_udi(const string& fn, const string& ipath, string &udi)
100
void make_udi(const string& fn, const string& ipath, string &udi)
101
{
101
{
102
    string s(fn);
102
    string s(fn);
103
    // Note that we append a "|" in all cases. Historical, could be removed
103
    s.append("|");
104
    s.append("|");
104
    s.append(ipath);
105
    s.append(ipath);
105
    pathHash(s, udi, PATHHASHLEN);
106
    pathHash(s, udi, PATHHASHLEN);
106
    return;
107
    return;
107
}
108
}