VirtualBox

Changeset 9791 in vbox for trunk/src/VBox/Additions/x11


Ignore:
Timestamp:
Jun 18, 2008 3:09:51 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32160
Message:

Additions/x11: remove some of the libstdc++ dependencies in VBoxClient (std::cout -> printf)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/xclient/main.cpp

    r8695 r9791  
    2626#include <iprt/path.h>
    2727
    28 #include <iostream>
    29 #include <cstdio>
    30 
    3128#include <sys/types.h>
    3229#include <stdlib.h>       /* For exit */
     30#include <stdio.h>
    3331#include <unistd.h>
    3432#include <errno.h>
     
    175173void vboxClientUsage(const char *pcszFileName)
    176174{
    177     /* printf is better for i18n than iostream. */
    178175    printf("Usage: %s [-d|--nodaemon]\n", pcszFileName);
    179176    printf("Start the VirtualBox X Window System guest services.\n\n");
     
    209206        else
    210207        {
    211             /* printf is better than iostream for i18n. */
    212208            printf("%s: unrecognized option `%s'\n", pszFileName, argv[i]);
    213209            printf("Try `%s --help' for more information\n", pszFileName);
     
    220216        if (RT_FAILURE(rc))
    221217        {
    222             std::cout << "VBoxClient: failed to daemonize. exiting."<< std::endl;
     218            printf("VBoxClient: failed to daemonize. exiting.");
    223219            return 1;
    224220        }
     
    228224    if (RT_FAILURE(VbglR3Init()))
    229225    {
    230         std::cout << "Failed to connect to the VirtualBox kernel service" << std::endl;
     226        printf("Failed to connect to the VirtualBox kernel service");
    231227        return 1;
    232228    }
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