summaryrefslogtreecommitdiffstats
path: root/lib/libutil/libutil.h
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2003-10-18 10:04:16 +0000
committermarkm <markm@FreeBSD.org>2003-10-18 10:04:16 +0000
commit3f45792057cf4f7381e74bec6f437cdb290e1817 (patch)
tree204484574f03753da73a26a0ec8c893e61e56e98 /lib/libutil/libutil.h
parent4d1565cf183af3ea64b06fbc0cff68b6956350bb (diff)
downloadFreeBSD-src-3f45792057cf4f7381e74bec6f437cdb290e1817.zip
FreeBSD-src-3f45792057cf4f7381e74bec6f437cdb290e1817.tar.gz
ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.
Diffstat (limited to 'lib/libutil/libutil.h')
-rw-r--r--lib/libutil/libutil.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h
index b3ebc6a..f2c2663 100644
--- a/lib/libutil/libutil.h
+++ b/lib/libutil/libutil.h
@@ -39,8 +39,6 @@
#ifndef _LIBUTIL_H_
#define _LIBUTIL_H_
-#include <sys/cdefs.h>
-
#define PROPERTY_MAX_NAME 64
#define PROPERTY_MAX_VALUE 512
@@ -87,13 +85,13 @@ char *fparseln(FILE *, size_t *, size_t *, const char[3], int);
#endif
#ifdef _PWD_H_
-int pw_copy(int _ffd, int _tfd, struct passwd *_pw, struct passwd *_old_pw);
-struct passwd *pw_dup(struct passwd *_pw);
+int pw_copy(int _ffd, int _tfd, const struct passwd *_pw, struct passwd *_old_pw);
+struct passwd *pw_dup(const struct passwd *_pw);
int pw_edit(int _notsetuid);
-int pw_equal(struct passwd *_pw1, struct passwd *_pw2);
+int pw_equal(const struct passwd *_pw1, const struct passwd *_pw2);
void pw_fini(void);
int pw_init(const char *_dir, const char *_master);
-char *pw_make(struct passwd *_pw);
+char *pw_make(const struct passwd *_pw);
int pw_mkdb(const char *_user);
int pw_lock(void);
struct passwd *pw_scan(const char *_line, int _flags);
OpenPOWER on IntegriCloud