Skip to content

Commit

Permalink
Fix "Remove path_resolution_perror() and __fpath_perror() macros"
Browse files Browse the repository at this point in the history
This fixes commit a564dd5.
  • Loading branch information
gportay committed Jun 13, 2023
1 parent 3e5be64 commit 1e9be1c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bind.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int bind(int socket, const struct sockaddr *addr, socklen_t addrlen)
{
struct sockaddr_un buf = { .sun_family = AF_UNIX, .sun_path = { 0 }};
struct sockaddr_un *addrun = (struct sockaddr_un *)addr;
socklen_t buflen;
socklen_t buflen = SUN_LEN(&buf);
int ret = -1;
ssize_t siz;

Expand Down
2 changes: 1 addition & 1 deletion connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int connect(int socket, const struct sockaddr *addr, socklen_t addrlen)
{
struct sockaddr_un buf = { .sun_family = AF_UNIX, .sun_path = { 0 }};
struct sockaddr_un *addrun = (struct sockaddr_un *)addr;
socklen_t buflen;
socklen_t buflen = SUN_LEN(&buf);
int ret = -1;
ssize_t siz;

Expand Down
2 changes: 1 addition & 1 deletion lsetxattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ int lsetxattr(const char *path, const char *name, const void *value,
{
char xbuf[XATTR_LIST_MAX+1]; /* NULL-terminated */
char buf[PATH_MAX];
int ret = -1;
ssize_t siz;
int ret;

siz = path_resolution(AT_FDCWD, path, buf, sizeof(buf),
AT_SYMLINK_NOFOLLOW);
Expand Down

0 comments on commit 1e9be1c

Please sign in to comment.