Btrfs-progs: clean up reduplicate parse_qgroupid() and replace atoi with strtoull
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>
Sun, 20 Jan 2013 21:04:15 +0000 (16:04 -0500)
committerDavid Sterba <dsterba@suse.cz>
Mon, 21 Jan 2013 17:28:01 +0000 (18:28 +0100)
commit9886166880ad36f586edd8f9fd220cc416b0d594
treec592aae4222857429e83de86debaec4d63c8035b
parentf933e084eafe3f0b441f0ffb99505fc34a66194e
Btrfs-progs: clean up reduplicate parse_qgroupid() and replace atoi with strtoull

1. parse_qgroupid() is implemented twice, clean up the reduplicate code.
2. atoi() can not detect errors, so use strtoull() instead of it.

Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Gene Czarcinski <gene@czarc.net>
cmds-qgroup.c
qgroup.c
qgroup.h