mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
convert the last few, manually
This commit is contained in:
@@ -174,7 +174,7 @@ extern void reply (xdrproc_t xdrp, char *ret);
|
||||
#define NEED_ROOT_OR_IS_DEVICE(path,errcode) \
|
||||
do { \
|
||||
if (strncmp ((path), "/dev/", 5) == 0) \
|
||||
IS_DEVICE ((path),(errcode)); \
|
||||
RESOLVE_DEVICE ((path), return errcode); \
|
||||
else { \
|
||||
NEED_ROOT ((errcode)); \
|
||||
ABS_PATH ((path),(errcode)); \
|
||||
|
||||
@@ -53,7 +53,7 @@ sfdisk (char *device, int n, int cyls, int heads, int sectors,
|
||||
if (extra_flag)
|
||||
sprintf (buf + strlen (buf), " %s", extra_flag);
|
||||
|
||||
/* Safe because of IS_DEVICE above: */
|
||||
/* Safe because of RESOLVE_DEVICE above: */
|
||||
sprintf (buf + strlen (buf), " %s", device);
|
||||
|
||||
if (verbose)
|
||||
|
||||
Reference in New Issue
Block a user