summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorfgsch <fgsch@openbsd.org>2001-08-30 07:38:27 +0000
committerfgsch <fgsch@openbsd.org>2001-08-30 07:38:27 +0000
commit271c380dbf1e6c47dce0416526a16d6fa2b2e491 (patch)
tree5c73760d06d9f4835f41767cf9a7b18dfb1a6030 /lib/libc
parentadditional documentation for GatewayPorts; ok markus@ (diff)
downloadwireguard-openbsd-271c380dbf1e6c47dce0416526a16d6fa2b2e491.tar.xz
wireguard-openbsd-271c380dbf1e6c47dce0416526a16d6fa2b2e491.zip
fix some const warnings
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/include/thread_private.h6
-rw-r--r--lib/libc/stdio/flockfile.c4
-rw-r--r--lib/libc/thread/thread_fd.c6
3 files changed, 8 insertions, 8 deletions
diff --git a/lib/libc/include/thread_private.h b/lib/libc/include/thread_private.h
index 29ff13d33c6..b1f322d10e4 100644
--- a/lib/libc/include/thread_private.h
+++ b/lib/libc/include/thread_private.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: thread_private.h,v 1.7 2001/08/12 12:03:01 heko Exp $ */
+/* $OpenBSD: thread_private.h,v 1.8 2001/08/30 07:38:27 fgsch Exp $ */
#ifndef _THREAD_PRIVATE_H_
#define _THREAD_PRIVATE_H_
@@ -128,8 +128,8 @@ void * _libc_private_storage(volatile struct _thread_private_key_struct *,
#endif
int _thread_fd_lock(int, int, struct timespec *);
-int _thread_fd_lock_debug(int, int, struct timespec *, const char *, int);
+int _thread_fd_lock_debug(int, int, struct timespec *, char *, int);
void _thread_fd_unlock(int, int);
-void _thread_fd_unlock_debug(int, int, const char *, int);
+void _thread_fd_unlock_debug(int, int, char *, int);
#endif /* _THREAD_PRIVATE_H_ */
diff --git a/lib/libc/stdio/flockfile.c b/lib/libc/stdio/flockfile.c
index 43c564e6b4f..07490e93384 100644
--- a/lib/libc/stdio/flockfile.c
+++ b/lib/libc/stdio/flockfile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: flockfile.c,v 1.2 2000/01/06 08:26:04 d Exp $ */
+/* $OpenBSD: flockfile.c,v 1.3 2001/08/30 07:38:27 fgsch Exp $ */
#include <stdio.h>
#include "thread_private.h"
@@ -48,7 +48,7 @@ WEAK_NAME(funlockfile)(fp)
void
WEAK_NAME(_flockfile_debug)(fp, fname, lineno)
FILE * fp;
- const char * fname;
+ char * fname;
int lineno;
{
}
diff --git a/lib/libc/thread/thread_fd.c b/lib/libc/thread/thread_fd.c
index b0b52378f1b..2c98939b9d7 100644
--- a/lib/libc/thread/thread_fd.c
+++ b/lib/libc/thread/thread_fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: thread_fd.c,v 1.1 2000/01/06 07:27:33 d Exp $ */
+/* $OpenBSD: thread_fd.c,v 1.2 2001/08/30 07:38:27 fgsch Exp $ */
#include <sys/time.h>
#include <pthread.h>
@@ -28,7 +28,7 @@ WEAK_NAME(_thread_fd_lock_debug)(fd, lock_type, timeout, fname, lineno)
int fd;
int lock_type;
struct timespec *timeout;
- const char *fname;
+ char *fname;
int lineno;
{
return 0;
@@ -45,7 +45,7 @@ void
WEAK_NAME(_thread_fd_unlock_debug)(fd, lock_type, fname, lineno)
int fd;
int lock_type;
- const char *fname;
+ char *fname;
int lineno;
{
}