Skip to content

Commit

Permalink
tools/binstall: Support use of FreeBSD strtofflags(3).
Browse files Browse the repository at this point in the history
FreeBSD's version of strtofflags(3) uses u_long types, so use them.

Silences warning of incompatible pointer types.
  • Loading branch information
chettrick committed Feb 23, 2024
1 parent 0726bbd commit 1746e10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/binstall/xinstall.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ main(int argc, char *argv[])
{
struct stat from_sb, to_sb;
void *set;
#ifdef __FreeBSD__
u_long fset = 0;
#else
u_int32_t fset = 0;
#endif
u_int iflags;
int ch, no_target;
char *flags, *to_name, *group = NULL, *owner = NULL;
Expand Down

0 comments on commit 1746e10

Please sign in to comment.