From: David van Moolenbroek Date: Tue, 17 Nov 2009 14:10:09 +0000 (+0000) Subject: Remove dead mini_ds_retrieve_u32 code X-Git-Tag: v3.1.6~196 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/host.html?a=commitdiff_plain;h=3926b70b2229c57badb1896f8bcbd3ba92986b59;p=minix.git Remove dead mini_ds_retrieve_u32 code --- diff --git a/include/minix/ds.h b/include/minix/ds.h index ac368a4d7..ce6453b95 100644 --- a/include/minix/ds.h +++ b/include/minix/ds.h @@ -34,8 +34,5 @@ _PROTOTYPE( int ds_retrieve_str, (char *name, char *val, size_t len)); _PROTOTYPE( int ds_check_u32, (char *n, size_t namelen, u32_t *val)); _PROTOTYPE( int ds_check_str, (char *n, size_t namelen, char *v, size_t vlen)); -/* lib/sysvipc/ds.c */ -_PROTOTYPE( int mini_ds_retrieve_u32, (char *name, u32_t *val) ); - #endif /* _MINIX_DS_H */ diff --git a/lib/sysvipc/ds.c b/lib/sysvipc/ds.c deleted file mode 100644 index c79796a8e..000000000 --- a/lib/sysvipc/ds.c +++ /dev/null @@ -1,41 +0,0 @@ -#define _SYSTEM 1 -#define _MINIX 1 - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include - -int mini_ds_retrieve_u32(char *ds_name, u32_t *value) -{ - int r; - message m; - size_t len_key; - - len_key = strlen(ds_name)+1; - - m.DS_KEY_GRANT = ds_name; - m.DS_KEY_LEN = len_key; - m.DS_FLAGS = DS_TYPE_U32; - - r = _taskcall(DS_PROC_NR, DS_RETRIEVE_LIBC, &m); - - if(r == OK) { - /* Assign u32 value. */ - *value = m.DS_VAL; - } - - return r; -} -