Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/citrus GC put16.
details: https://anonhg.NetBSD.org/src/rev/1784d28b1b6c
branches: trunk
changeset: 789966:1784d28b1b6c
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Sep 14 13:05:51 2013 +0000
description:
GC put16.
XXX Use sys/endian.h
diffstat:
lib/libc/citrus/citrus_db_factory.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diffs (33 lines):
diff -r 75582f503231 -r 1784d28b1b6c lib/libc/citrus/citrus_db_factory.c
--- a/lib/libc/citrus/citrus_db_factory.c Sat Sep 14 12:51:27 2013 +0000
+++ b/lib/libc/citrus/citrus_db_factory.c Sat Sep 14 13:05:51 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: citrus_db_factory.c,v 1.9 2008/02/09 14:56:20 junyoung Exp $ */
+/* $NetBSD: citrus_db_factory.c,v 1.10 2013/09/14 13:05:51 joerg Exp $ */
/*-
* Copyright (c)2003 Citrus Project,
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_db_factory.c,v 1.9 2008/02/09 14:56:20 junyoung Exp $");
+__RCSID("$NetBSD: citrus_db_factory.c,v 1.10 2013/09/14 13:05:51 joerg Exp $");
#endif /* LIBC_SCCS and not lint */
#include <assert.h>
@@ -235,14 +235,6 @@
}
static __inline void
-put16(struct _region *r, size_t *rofs, uint16_t val)
-{
- val = htons(val);
- memcpy(_region_offset(r, *rofs), &val, 2);
- *rofs += 2;
-}
-
-static __inline void
put32(struct _region *r, size_t *rofs, uint32_t val)
{
val = htonl(val);
Home |
Main Index |
Thread Index |
Old Index