mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Fix whitespace.
Because of previous automated commits, such as changing 'guestfs___' -> 'guestfs_int_', several function calls no longer lined up with their parameters, and some lines were too long. The bulk of this commit was done using emacs batch mode and the technique described here: http://www.cslab.pepperdine.edu/warford/BatchIndentationEmacs.html The changes suggested by emacs were then reviewed by hand.
This commit is contained in:
@@ -173,10 +173,10 @@ add_partitions (const char *device, struct stringsbuf *r)
|
||||
|
||||
/* Check if readdir failed */
|
||||
if (0 != errno) {
|
||||
reply_with_perror ("readdir: %s", devdir);
|
||||
free_stringslen (r->argv, r->size);
|
||||
closedir (dir);
|
||||
return -1;
|
||||
reply_with_perror ("readdir: %s", devdir);
|
||||
free_stringslen (r->argv, r->size);
|
||||
closedir (dir);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Close the directory handle */
|
||||
@@ -252,8 +252,7 @@ do_is_whole_device (const char *device)
|
||||
* /sys/block directory */
|
||||
CLEANUP_FREE char *devpath = NULL;
|
||||
if (asprintf (&devpath, "/sys/block/%s/device",
|
||||
device + strlen ("/dev/")) == -1)
|
||||
{
|
||||
device + strlen ("/dev/")) == -1) {
|
||||
reply_with_perror ("asprintf");
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user