pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/lib Nuke unused macros.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2583fae9ddc3
branches:  trunk
changeset: 541285:2583fae9ddc3
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Apr 18 12:01:46 2008 +0000

description:
Nuke unused macros.

diffstat:

 pkgtools/pkg_install/files/lib/defs.h |  11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diffs (25 lines):

diff -r 2a9ace568865 -r 2583fae9ddc3 pkgtools/pkg_install/files/lib/defs.h
--- a/pkgtools/pkg_install/files/lib/defs.h     Fri Apr 18 12:01:05 2008 +0000
+++ b/pkgtools/pkg_install/files/lib/defs.h     Fri Apr 18 12:01:46 2008 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: defs.h,v 1.8 2007/09/16 19:03:52 joerg Exp $ */
+/* $NetBSD: defs.h,v 1.9 2008/04/18 12:01:46 joerg Exp $ */
 
 /*
  * Copyright (c) 1999-2000 Alistair G. Crooks.  All rights reserved.
@@ -55,15 +55,6 @@
 #define MAX(a,b)       (((a) > (b)) ? (a) : (b))
 #endif
 
-#ifndef ABS
-#define ABS(a)         (((a) < 0) ? -(a) : (a))
-#endif
-
-#define STRNCPY(to, from, size)        do {                                    \
-       (void) strncpy(to, from, size);                                 \
-       to[(size) - 1] = 0;                                             \
-} while( /* CONSTCOND */ 0)
-
 /*
  * Some systems such as OpenBSD-3.6 do not provide PRIu64.
  * Others such as AIX-4.3.2 have a broken PRIu64 which includes



Home | Main Index | Thread Index | Old Index