summaryrefslogtreecommitdiff
path: root/lib/ZFmtNotice.c
diff options
context:
space:
mode:
authorGravatar Robert S. French <rfrench@mit.edu>1988-05-17 17:21:01 +0000
committerGravatar Robert S. French <rfrench@mit.edu>1988-05-17 17:21:01 +0000
commit031ec0f258f152c1e20905b381aa7f5974db1f3d (patch)
tree1c15619ec8a5192e2d5095c6efde5e9a47ddc7ce /lib/ZFmtNotice.c
parent4d21b4b5da809cdf4499190a1e27bff679a90422 (diff)
All sorts of changes for ver 0.2
Diffstat (limited to 'lib/ZFmtNotice.c')
-rw-r--r--lib/ZFmtNotice.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/ZFmtNotice.c b/lib/ZFmtNotice.c
index f1f64e8..8aaab6a 100644
--- a/lib/ZFmtNotice.c
+++ b/lib/ZFmtNotice.c
@@ -18,7 +18,7 @@ static char rcsid_ZFormatNotice_c[] = "$Header$";
#include <zephyr/mit-copyright.h>
-#include <zephyr/zephyr.h>
+#include <zephyr/zephyr_internal.h>
Code_t ZFormatNotice(notice, buffer, ret_len, cert_routine)
ZNotice_t *notice;
@@ -27,7 +27,6 @@ Code_t ZFormatNotice(notice, buffer, ret_len, cert_routine)
int (*cert_routine)();
{
char header[Z_MAXHEADERLEN];
- char *ptr;
int hdrlen;
Code_t retval;
@@ -37,11 +36,10 @@ Code_t ZFormatNotice(notice, buffer, ret_len, cert_routine)
*ret_len = hdrlen+notice->z_message_len;
- if (!(*buffer = malloc(*ret_len)))
+ if (!(*buffer = (char *)malloc(*ret_len)))
return (ENOMEM);
- notice->z_packet = *buffer;
-
+ bcopy(header, *buffer, hdrlen);
bcopy(notice->z_message, *buffer+hdrlen, notice->z_message_len);
return (ZERR_NONE);