VirtualBox

Changeset 43411 in vbox


Ignore:
Timestamp:
Sep 22, 2012 6:42:16 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80897
Message:

Additions/haiku: cleanup.

Location:
trunk/src/VBox/Additions/common/VBoxGuest
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-haiku-stubs.c

    r43366 r43411  
    446446    g_VBoxGuest->_RTHeapSimpleFree(Heap, pv);
    447447}
     448
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-haiku.c

    r43410 r43411  
    394394    if (RT_FAILURE(rc))
    395395    {
    396         /** @todo r=ramshankar: use dprintf here & the error code looks wrong too. */
     396        /** @todo r=ramshankar: use dprintf here. */
    397397        LogFunc(("RTR0Init failed.\n"));
    398398        return ENXIO;
     
    499499    int ix = 0;
    500500
    501     if (get_module(B_PCI_MODULE_NAME, (module_info **)&gPCI))
    502         return ENOSYS;
     501    err = get_module(B_PCI_MODULE_NAME, (module_info **)&gPCI);
     502    if (err != B_OK)
     503        return err;
    503504
    504505    while ((*gPCI->get_nth_pci_info)(ix++, &info) == B_OK)
     
    506507        if (VBoxGuestHaikuProbe(&info) == 0)
    507508        {
    508             /* we found it */
     509            /* We found it */
    509510            err = VBoxGuestHaikuAttach(&info);
    510             break;
     511            return err;
    511512        }
    512513    }
    513514
    514     return err;
     515    return B_ENTRY_NOT_FOUND;
    515516}
    516517
     
    528529    {
    529530        case B_MODULE_INIT:
    530             dprintf(MODULE_NAME ": B_MODULE_INIT\n");
    531531            return init_module();
     532
    532533        case B_MODULE_UNINIT:
    533             dprintf(MODULE_NAME ": B_MODULE_UNINIT\n");
     534        {
    534535            uninit_module();
    535536            return B_OK;
     537        }
     538
    536539        default:
    537540            return B_ERROR;
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-haiku.h

    r43366 r43411  
    223223#endif
    224224
    225 #endif
     225#endif /* ___VBoxGuest_haiku_h */
     226
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