Skip to content

Commit

Permalink
Re-fix -Wwrite-strings on FreeBSD
Browse files Browse the repository at this point in the history
Follow up fix for a926aab.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13348
Closes openzfs#13610
  • Loading branch information
nabijaczleweli authored and andrewc12 committed Sep 23, 2022
1 parent 8039b5d commit 9bb1152
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/libspl/include/os/freebsd/sys/mnttab.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/libspl/os/freebsd/mnttab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/libzfs/os/freebsd/libzfs_zmount.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion module/os/freebsd/zfs/zfs_acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@ zfs_acl_ids_create(znode_t *dzp, int flag, vattr_t *vap, cred_t *cr,
acl_ids->z_fgid = 0;
}
if (acl_ids->z_fgid == 0) {
char *domain;
const char *domain;
uint32_t rid;

acl_ids->z_fgid = dzp->z_gid;
Expand Down

0 comments on commit 9bb1152

Please sign in to comment.