From 219ab4972b6b7658662e98b150487ca7aefaba20 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Tue, 20 Jun 2006 03:27:01 +0000 Subject: [PATCH] INTEGRATION: CWS warnings01 (1.3.94); FILE MERGED 2005/09/23 01:20:21 sb 1.3.94.3: RESYNC: (1.3-1.4); FILE MERGED 2005/09/15 12:35:45 sb 1.3.94.2: #i53898# Fixed previous change. 2005/09/14 15:19:04 sb 1.3.94.1: #i53898# Made code warning-free. --- sal/qa/rtl/process/child_process.cxx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/sal/qa/rtl/process/child_process.cxx b/sal/qa/rtl/process/child_process.cxx index 686fccb5363d..eac2549513a0 100644 --- a/sal/qa/rtl/process/child_process.cxx +++ b/sal/qa/rtl/process/child_process.cxx @@ -4,9 +4,9 @@ * * $RCSfile: child_process.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2005-09-08 15:48:25 $ + * last change: $Author: hr $ $Date: 2006-06-20 04:27:01 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -50,15 +50,16 @@ using namespace ::rtl; // ----------------------------------- Main ----------------------------------- -SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) +SAL_IMPLEMENT_MAIN_WITH_ARGS(, argv) { printf("# %s is called.\n", argv[0]); - sal_Bool bRes = sal_True; sal_Int32 nCount = rtl_getAppCommandArgCount(); if ( nCount != 4 ) { - printf("# not enough arguments found, need 4 found %d.\n", nCount); + printf( + "# not enough arguments found, need 4 found %ld.\n", + sal::static_int_cast< long >(nCount)); return 0; } @@ -68,7 +69,9 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) rtl_getAppCommandArg( i , &(suArg[i].pData) ); rtl::OString aString; aString = ::rtl::OUStringToOString( suArg[i], RTL_TEXTENCODING_ASCII_US ); - printf("# Parameter[%d] is %s\n", i, aString.getStr()); + printf( + "# Parameter[%ld] is %s\n", sal::static_int_cast< long >(i), + aString.getStr()); } if ( suArg[0].compareTo( suParam0) != 0 ||