mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Re-fix -Wwrite-strings on FreeBSD
Follow up fix for a926aab902.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13348
Closes #13610
This commit is contained in:
@@ -79,7 +79,7 @@ extern int _sol_getmntent(FILE *fp, struct mnttab *mp);
|
||||
extern int getextmntent(const char *path, struct extmnttab *entry,
|
||||
struct stat64 *statbuf);
|
||||
extern void statfs2mnttab(struct statfs *sfs, struct mnttab *mp);
|
||||
extern char *hasmntopt(struct mnttab *mnt, char *opt);
|
||||
extern char *hasmntopt(struct mnttab *mnt, const char *opt);
|
||||
extern int getmntent(FILE *fp, struct mnttab *mp);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -67,7 +67,7 @@ mntopt(char **p)
|
||||
}
|
||||
|
||||
char *
|
||||
hasmntopt(struct mnttab *mnt, char *opt)
|
||||
hasmntopt(struct mnttab *mnt, const char *opt)
|
||||
{
|
||||
char tmpopts[MNT_LINE_MAX];
|
||||
char *f, *opts = tmpopts;
|
||||
|
||||
@@ -75,7 +75,7 @@ build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val,
|
||||
|
||||
static int
|
||||
do_mount_(const char *spec, const char *dir, int mflag,
|
||||
char *dataptr, int datalen, char *optptr, int optlen)
|
||||
char *dataptr, int datalen, const char *optptr, int optlen)
|
||||
{
|
||||
struct iovec *iov;
|
||||
char *optstr, *p, *tofree;
|
||||
|
||||
Reference in New Issue
Block a user