Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/hfs Remove bogus code to workaround PCC limitations.



details:   https://anonhg.NetBSD.org/src/rev/30a093292ee9
branches:  trunk
changeset: 995774:30a093292ee9
user:      maya <maya%NetBSD.org@localhost>
date:      Sat Jan 05 10:25:11 2019 +0000

description:
Remove bogus code to workaround PCC limitations.

This would print stack garbage, which isn't desirable.

diffstat:

 sys/fs/hfs/libhfs.h |  8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diffs (25 lines):

diff -r 2f5c57f6648c -r 30a093292ee9 sys/fs/hfs/libhfs.h
--- a/sys/fs/hfs/libhfs.h       Sat Jan 05 09:39:56 2019 +0000
+++ b/sys/fs/hfs/libhfs.h       Sat Jan 05 10:25:11 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: libhfs.h,v 1.7 2015/06/21 14:00:40 maxv Exp $  */
+/*     $NetBSD: libhfs.h,v 1.8 2019/01/05 10:25:11 maya Exp $  */
 
 /*-
  * Copyright (c) 2005, 2007 The NetBSD Foundation, Inc.
@@ -57,15 +57,9 @@
 
 
 /* Macros to handle errors in this library. Not recommended outside libhfs.c */
-#ifdef __PCC__
-#define HFS_LIBERR(format, ...) \
-       do{ hfslib_error(format, __FILE__, __LINE__); \
-               goto error; } while(/*CONSTCOND*/ 0)
-#else
 #define HFS_LIBERR(format, ...) \
        do{ hfslib_error(format, __FILE__, __LINE__, ##__VA_ARGS__); \
                goto error; } while(/*CONSTCOND*/ 0)
-#endif
 
 #if 0
 #pragma mark Constants (on-disk)



Home | Main Index | Thread Index | Old Index