summaryrefslogtreecommitdiff
path: root/odk/source/unoapploader/unx/unoapploader.c
diff options
context:
space:
mode:
Diffstat (limited to 'odk/source/unoapploader/unx/unoapploader.c')
-rw-r--r--odk/source/unoapploader/unx/unoapploader.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/odk/source/unoapploader/unx/unoapploader.c b/odk/source/unoapploader/unx/unoapploader.c
index a44c01285918..a36f8fddfcd6 100644
--- a/odk/source/unoapploader/unx/unoapploader.c
+++ b/odk/source/unoapploader/unx/unoapploader.c
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,15 +50,15 @@ const char* PATHSEPARATOR = ":";
/*
* The main function implements a loader for applications which use UNO.
- *
+ *
* <p>This code runs on the Unix/Linux platforms only.</p>
*
* <p>The main function detects a UNO installation on the system and adds the
* relevant directories of the installation to the LD_LIBRARY_PATH environment
- * variable. After that, the application process is loaded and started, whereby
+ * variable. After that, the application process is loaded and started, whereby
* the new process inherits the environment of the calling process, including
- * the modified LD_LIBRARY_PATH environment variable. The application's
- * executable name must be the same as the name of this executable, prefixed
+ * the modified LD_LIBRARY_PATH environment variable. The application's
+ * executable name must be the same as the name of this executable, prefixed
* by '_'.</p>
* <p>On MACOSX DYLD_LIBRARY_PATH is used instead of LD_LIBRARY_PATH!<p>
*
@@ -66,8 +66,8 @@ const char* PATHSEPARATOR = ":";
* environment variable to the program directory of the UNO installation.
* If no installation is specified by the user, the default installation on
* the system will be taken. The default installation is found from the
- * PATH environment variable. This requires that the 'soffice' executable or
- * a symbolic link is in one of the directories listed in the PATH environment
+ * PATH environment variable. This requires that the 'soffice' executable or
+ * a symbolic link is in one of the directories listed in the PATH environment
* variable.</p>
*/
int main( int argc, char *argv[] )
@@ -75,7 +75,7 @@ int main( int argc, char *argv[] )
char const* path;
char* cmdname;
- (void) argc; /* avoid warning about unused parameter */
+ (void) argc; /* avoid warning about unused parameter */
/* get the path of the UNO installation */
path = getPath();
@@ -216,7 +216,7 @@ int main( int argc, char *argv[] )
cmdname = createCommandName( argv[0] );
argv[0] = cmdname;
- /*
+ /*
* create the application process;
* if successful, execvp doesn't return to the calling process
*/
@@ -229,9 +229,9 @@ int main( int argc, char *argv[] )
/*
* Gets the path of a UNO installation.
- *
+ *
* @return the installation path or NULL, if no installation was specified or
- * found, or if an error occured
+ * found, or if an error occured
*/
char const* getPath()
{
@@ -246,7 +246,7 @@ char const* getPath()
return path;
}
-
+
/*
* Creates the application's executable file name.
*
@@ -273,7 +273,7 @@ char* createCommandName( char* argv0 )
prgname = argv0;
#ifndef AIX
- /*
+ /*
* if argv0 doesn't contain an absolute path name, try to get the absolute
* path name from dladdr; note that this only works for Solaris, not for
* Linux
@@ -294,7 +294,7 @@ char* createCommandName( char* argv0 )
if ( sep != NULL )
{
pos = ++sep - prgname;
- strncpy( cmdname, prgname, pos );
+ strncpy( cmdname, prgname, pos );
cmdname[ pos ] = '\0';
strcat( cmdname, CMDPREFIX );
strcat( cmdname, sep );