+#ifndef _INC_SYS_TYPE_H
+#define _INC_SYS_TYPE_H
+
/*
* this files resolves conflicts between the file of the host system and
* the minix specific one. This file is included directly only on Minix
#else
#include <minix/types.h>
#endif
+
+#endif
+#ifndef _INC_INC_H
+#define _INC_INC_H
+
/* Header file including all needed system headers. */
#define _SYSTEM 1 /* get OK and negative error codes */
#include <signal.h>
#include "proto.h"
-
+#endif
+#ifndef _INC_PROTO_H
+#define _INC_PROTO_H
+
/* Function prototypes. */
/* main.c */
_PROTOTYPE(int do_getsysinfo, (message *m_ptr));
_PROTOTYPE(int sef_cb_init_fresh, (int type, sef_init_info_t *info));
+#endif
break;
case DSF_TYPE_STR:
strncpy(dsp->u.string, (char *)(&m_ptr->DS_STRING), DS_MAX_STRLEN);
- dsp->u.string[DS_MAX_KEYLEN - 1] = '\0';
+ dsp->u.string[DS_MAX_STRLEN - 1] = '\0';
break;
case DSF_TYPE_MEM:
length = m_ptr->DS_VAL_LEN;