summaryrefslogtreecommitdiff
path: root/lib/libkeynote/environment.c
diff options
context:
space:
mode:
authorMathieu Sauve-Frankel <msf@cvs.openbsd.org>2004-06-25 05:06:50 +0000
committerMathieu Sauve-Frankel <msf@cvs.openbsd.org>2004-06-25 05:06:50 +0000
commit1565c127b1bdcc74ee76a732acd8d8ea330dbce5 (patch)
tree21fe9a6b51d8c6d7e5161c2297283411c4d03377 /lib/libkeynote/environment.c
parent9bd8fd0c93dcd62158eebc119f2255df53ba1b8f (diff)
Make crufty configure stuff go away. Remove all unused code paths.
No change in binaries. ok millert@ deraadt@ hshoexer@
Diffstat (limited to 'lib/libkeynote/environment.c')
-rw-r--r--lib/libkeynote/environment.c39
1 files changed, 5 insertions, 34 deletions
diff --git a/lib/libkeynote/environment.c b/lib/libkeynote/environment.c
index 8cd0edb4aeb..ba4e0f39daf 100644
--- a/lib/libkeynote/environment.c
+++ b/lib/libkeynote/environment.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: environment.c,v 1.17 2003/04/02 23:01:10 millert Exp $ */
+/* $OpenBSD: environment.c,v 1.18 2004/06/25 05:06:49 msf Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu)
*
@@ -19,35 +19,16 @@
* PURPOSE.
*/
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif /* HAVE_CONFIG_H */
#include <sys/types.h>
+
+#include <ctype.h>
+#include <fcntl.h>
+#include <memory.h>
#include <stdlib.h>
#include <stdio.h>
-#include <ctype.h>
-
-#if STDC_HEADERS
#include <string.h>
-#if !defined(HAVE_MEMCPY)
-#define memcpy(d, s, n) bcopy ((s), (d), (n))
-#endif /* !HAVE_MEMCPY */
-#endif /* STDC_HEADERS */
-
-#if HAVE_MEMORY_H
-#include <memory.h>
-#endif /* HAVE_MEMORY_H */
-
-#if HAVE_FCNTL_H
-#include <fcntl.h>
-#endif /* HAVE_FCNTL_H */
-
-#if HAVE_IO_H
-#include <io.h>
-#elif HAVE_UNISTD_H
#include <unistd.h>
-#endif /* HAVE_IO_H */
#include "header.h"
#include "keynote.h"
@@ -122,13 +103,8 @@ keynote_get_action_authorizers(char *name)
kl = kl->key_next)
if (kl->key_stringkey != (char *) NULL)
{
-#if !defined(HAVE_SNPRINTF)
- sprintf(keynote_current_session->ks_authorizers_cache + len,
- "%s,", kl->key_stringkey);
-#else /* !HAVE_SNPRINTF */
snprintf(keynote_current_session->ks_authorizers_cache + len,
cachesize - len, "%s,", kl->key_stringkey);
-#endif /* !HAVE_SNPRINTF */
len += strlen(kl->key_stringkey) + 1;
}
@@ -176,13 +152,8 @@ keynote_get_values(char *name)
for (len = 0, i = 0; i < keynote_current_session->ks_values_num; i++)
{
-#if !defined(HAVE_SNPRINTF)
- sprintf(keynote_current_session->ks_values_cache + len,
- "%s,", keynote_current_session->ks_values[i]);
-#else /* !HAVE_SNPRINTF */
snprintf(keynote_current_session->ks_values_cache + len,
cachesize - len, "%s,", keynote_current_session->ks_values[i]);
-#endif /* !HAVE_SNPRINTF */
len += strlen(keynote_current_session->ks_values[i]) + 1;
}