OSDN Git Service

linux: clean up device naming code (no semantic change)
authorJim Meyering <meyering@redhat.com>
Thu, 14 Apr 2011 11:22:28 +0000 (13:22 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 18 Apr 2011 16:39:29 +0000 (18:39 +0200)
commit5e25f84b6b1e7d84784f597fbf728e2f09034387
tree060a73a6e1ca37f399e89caf9aafe4296c9b1cab
parentf6e435678b5c0c4fe92a4a8aa1f1900d5b5acd05
linux: clean up device naming code (no semantic change)

* libparted/arch/linux.c (zasprintf): New function.
(_device_get_part_path): Clean up:
Use size_t, not "int" for strlen-returned value.
Combine mostly duplicate snprintf uses.
Use zasprintf instead of malloc+snprintf.
libparted/arch/linux.c