• C
    factor common code in virHashAddEntry and virHashUpdateEntry · 7f1c65e5
    Christophe Fergeau 提交于
    The only difference between these 2 functions is that one errors
    out when the entry is already present while the other modifies
    the existing entry. Add an helper function with a boolean argument
    indicating whether existing entries should be updated or not, and
    use this helper in both functions.
    7f1c65e5
hash.c 14.8 KB