From 790b82e266de3ff76cc5e5dda8f640693a73db9d Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 6 Apr 2014 03:28:11 +0000 Subject: [PATCH] Removed the VReportError() function and moved its functionality into the ReportError macro. This should hopefully solve compilation problems on PPC and ARM. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@48910 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/network/smbfs/source_code/main.c | 13 ------------- workbench/network/smbfs/source_code/smbfs.h | 8 ++++---- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/workbench/network/smbfs/source_code/main.c b/workbench/network/smbfs/source_code/main.c index 2703fa8292..99b415fd3b 100755 --- a/workbench/network/smbfs/source_code/main.c +++ b/workbench/network/smbfs/source_code/main.c @@ -646,19 +646,6 @@ DisplayErrorList(VOID) /****************************************************************************/ -/* Report an error that has occured - */ -VOID VReportError(STRPTR fmt, IPTR *args) -{ - if(NOT Quiet) - { - kprintf("[SMB] "); - vkprintf(fmt,(va_list)args); - kprintf("\n"); - } -} -/****************************************************************************/ - /* Release memory allocated from the global pool. */ VOID FreeMemory(APTR address) diff --git a/workbench/network/smbfs/source_code/smbfs.h b/workbench/network/smbfs/source_code/smbfs.h index 03f653d6e0..e55039b89f 100755 --- a/workbench/network/smbfs/source_code/smbfs.h +++ b/workbench/network/smbfs/source_code/smbfs.h @@ -130,10 +130,10 @@ extern time_t MakeTime(const struct tm * const tm); extern ULONG GetCurrentTime(VOID); extern VOID GMTime(time_t seconds,struct tm * tm); #ifdef __AROS__ -extern VOID VReportError(STRPTR fmt, IPTR *args); -#define ReportError(fmt, ...) do { \ - IPTR vargs[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \ - VReportError(fmt, vargs); } while (0) +#define ReportError(...) do { \ + kprintf("[SMB] "); \ + kprintf(__VA_ARGS__); \ + kprintf("\n"); } while (0) #define SPrintf(buf, fmt, ...) do { \ IPTR vargs[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \ VSPrintf(buf, fmt, vargs); } while (0) -- 2.11.4.GIT