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/3e44cb685e83
branches:  trunk
changeset: 447250:3e44cb685e83
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 d37287050b9d -r 3e44cb685e83 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