VirtualBox

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


Ignore:
Timestamp:
Feb 2, 2010 10:20:13 PM (15 years ago)
Author:
vboxsync
Message:

VBox/err.h,*: Use RT_SUCCESS/FAILURE instead of the VBOX variants, removing the latter.

Location:
trunk/src/VBox/Additions
Files:
2 edited

Legend:

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

    r26174 r26176  
    292292
    293293        rc = vboxCallCreate (&client_handle, &sf_g->map, sf_i->path, &params);
    294         if (VBOX_FAILURE (rc)) {
     294        if (RT_FAILURE (rc)) {
    295295                LogFunc(("vboxCallCreate(%s) failed rc=%Rrc\n",
    296296                        sf_i->path->String.utf8, rc));
     
    342342                                SHFL_INFO_SET | SHFL_INFO_FILE, &cbBuffer,
    343343                                (PSHFLDIRINFO)&info);
    344             if (VBOX_FAILURE (rc)) {
     344            if (RT_FAILURE (rc)) {
    345345                LogFunc(("vboxCallFSInfo(%s, FILE) failed rc=%Rrc\n",
    346346                        sf_i->path->String.utf8, rc));
     
    358358                                SHFL_INFO_SET | SHFL_INFO_SIZE, &cbBuffer,
    359359                                (PSHFLDIRINFO)&info);
    360             if (VBOX_FAILURE (rc)) {
     360            if (RT_FAILURE (rc)) {
    361361                LogFunc(("vboxCallFSInfo(%s, SIZE) failed rc=%Rrc\n",
    362362                        sf_i->path->String.utf8, rc));
     
    367367
    368368        rc = vboxCallClose (&client_handle, &sf_g->map, params.Handle);
    369         if (VBOX_FAILURE (rc))
     369        if (RT_FAILURE (rc))
    370370        {
    371371                LogFunc(("vboxCallClose(%s) failed rc=%Rrc\n",
     
    377377fail1:
    378378        rc = vboxCallClose (&client_handle, &sf_g->map, params.Handle);
    379         if (VBOX_FAILURE (rc))
     379        if (RT_FAILURE (rc))
    380380        {
    381381                LogFunc(("vboxCallClose(%s) failed rc=%Rrc\n",
  • trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_prov.c

    r25883 r26176  
    124124        str = sfprov_string(path, &size);
    125125        rc = vboxCallMapFolder(&vbox_client, str, &m->map);
    126         if (!VBOX_SUCCESS(rc)) {
     126        if (!RT_SUCCESS(rc)) {
    127127                cmn_err(CE_WARN, "sfprov_mount: vboxCallMapFolder() failed");
    128128                kmem_free(m, sizeof (*m));
     
    143143
    144144        rc = vboxCallUnmapFolder(&vbox_client, &mnt->map);
    145         if (!VBOX_SUCCESS(rc)) {
     145        if (!RT_SUCCESS(rc)) {
    146146                cmn_err(CE_WARN, "sfprov_mount: vboxCallUnmapFolder() failed");
    147147                rc = EINVAL;
     
    165165        rc = vboxCallFSInfo(&vbox_client, &mnt->map, 0,
    166166            (SHFL_INFO_GET | SHFL_INFO_VOLUME), &bytes, (SHFLDIRINFO *)&info);
    167         if (VBOX_FAILURE(rc))
     167        if (RT_FAILURE(rc))
    168168                return (EINVAL);
    169169        *blksize = info.ulBytesPerAllocationUnit;
     
    180180        rc = vboxCallFSInfo(&vbox_client, &mnt->map, 0,
    181181            (SHFL_INFO_GET | SHFL_INFO_VOLUME), &bytes, (SHFLDIRINFO *)&info);
    182         if (VBOX_FAILURE(rc))
     182        if (RT_FAILURE(rc))
    183183                return (EINVAL);
    184184        *blksused = (info.ullTotalAllocationBytes -
     
    196196        rc = vboxCallFSInfo(&vbox_client, &mnt->map, 0,
    197197            (SHFL_INFO_GET | SHFL_INFO_VOLUME), &bytes, (SHFLDIRINFO *)&info);
    198         if (VBOX_FAILURE(rc))
     198        if (RT_FAILURE(rc))
    199199                return (EINVAL);
    200200        *blksavail =
     
    212212        rc = vboxCallFSInfo(&vbox_client, &mnt->map, 0,
    213213            (SHFL_INFO_GET | SHFL_INFO_VOLUME), &bytes, (SHFLDIRINFO *)&info);
    214         if (VBOX_FAILURE(rc))
     214        if (RT_FAILURE(rc))
    215215                return (EINVAL);
    216216        *maxnamesize = info.fsProperties.cbMaxComponent;
     
    227227        rc = vboxCallFSInfo(&vbox_client, &mnt->map, 0,
    228228            (SHFL_INFO_GET | SHFL_INFO_VOLUME), &bytes, (SHFLDIRINFO *)&info);
    229         if (VBOX_FAILURE(rc))
     229        if (RT_FAILURE(rc))
    230230                return (EINVAL);
    231231        *readonly = info.fsProperties.fReadOnly;
Note: See TracChangeset for help on using the changeset viewer.

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