• P
    virsh: Reject negative numbers in vshCommandOptUInt · 37e663ad
    Peter Krempa 提交于
    Use virStrToLong_uip instead of virStrToLong_ui to reject negative
    numbers in the helper. None of the callers expects the wraparound
    "feature" for negative numbers.
    
    Also add a function that allows wrapping of negative numbers as it might
    be used in the future and be explicit about the new semantics in the
    function docs.
    37e663ad
virsh.c 95.6 KB