VirtualBox

Changeset 31203 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jul 29, 2010 12:44:41 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64205
Message:

Tabs, spaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/vbsfmount.c

    r31202 r31203  
    2929/** @todo Use defines for return values! */
    3030int vbsfmount_complete(const char *host_name, const char *mount_point,
    31                                            unsigned long flags, struct vbsf_mount_opts *opts)
     31                       unsigned long flags, struct vbsf_mount_opts *opts)
    3232{
    3333    FILE *f, *m;
     
    3535    size_t size;
    3636    struct mntent e;
    37         int rc = 0;
     37    int rc = 0;
    3838
    3939    m = open_memstream(&buf, &size);
     
    6565    f = setmntent(MOUNTED, "a+");
    6666    if (!f)
    67         {
    68                 rc = 2; /* Could not open mount table for update. */
    69         }
    70         else
    71         {
    72                 e.mnt_fsname = (char*)host_name;
    73                 e.mnt_dir = (char*)mount_point;
    74                 e.mnt_type = "vboxsf";
    75                 e.mnt_opts = buf;
    76                 e.mnt_freq = 0;
    77                 e.mnt_passno = 0;
     67    {
     68        rc = 2; /* Could not open mount table for update. */
     69    }
     70    else
     71    {
     72        e.mnt_fsname = (char*)host_name;
     73        e.mnt_dir = (char*)mount_point;
     74        e.mnt_type = "vboxsf";
     75        e.mnt_opts = buf;
     76        e.mnt_freq = 0;
     77        e.mnt_passno = 0;
    7878
    79                 if (addmntent(f, &e))
    80                         rc = 3;  /* Could not add an entry to the mount table. */
     79        if (addmntent(f, &e))
     80            rc = 3;  /* Could not add an entry to the mount table. */
    8181
    82                 endmntent(f);
    83         }
     82        endmntent(f);
     83    }
    8484
    8585    if (size > 0)
     
    8989    }
    9090
    91         return rc;
     91    return rc;
    9292}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette