summaryrefslogtreecommitdiff
path: root/error.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2011-11-22 09:46:01 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-11-28 16:20:52 -0600
commit8dddfb553151724a6a2110e56e8ced3213faf750 (patch)
tree15fba3cf55fcd2dc61d3de1cd30aadd30b97fae9 /error.h
parent21d4a791da47cf35956102d0b96208e3e595b617 (diff)
downloadqemu-8dddfb553151724a6a2110e56e8ced3213faf750.tar.gz
cutils: Drop broken support for zero strtosz default_suffix
Commit 9f9b17a4's strtosz() defaults a missing suffix to 'M', except it rejects fractions then (switch case 0). When commit d8427002 introduced strtosz_suffix(), that changed: fractions are no longer rejected, because we go to switch case 'M' on missing suffix now. Not mentioned in commit message, probably unintentional. Not worth changing back now. Because case 0 is still around, you can get the old behavior by passing a zero default_suffix to strtosz_suffix() or strtosz_suffix_unit(). Undocumented and not used. Drop. Commit d8427002 also neglected to update the function comment. Fix it up. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'error.h')
0 files changed, 0 insertions, 0 deletions