diff options
author | Ryo Nakamura <upa@haeena.net> | 2024-02-06 21:54:04 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2024-02-06 21:54:04 +0900 |
commit | 4f0669f8f86acb09f10ffb5af273f86d8d6ddd34 (patch) | |
tree | 65d5d0adfd90e31b77474993addeb065edfeb75c /src/fileops.c | |
parent | 76892a69f95f7dcf47050800385bc610f8ccf5f3 (diff) |
refactor error message-related functions
split message print fuctions (mpr_*), strerrno, and mscp_get/set_error
into print.c/h and strerrno.c/h.
ToDo: revise usages of priv_set_errv and pr_* functions.
Diffstat (limited to 'src/fileops.c')
-rw-r--r-- | src/fileops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fileops.c b/src/fileops.c index 5dbbebd..f24b088 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -9,7 +9,7 @@ #include <fileops.h> #include <ssh.h> -#include <message.h> +#include <print.h> #include <platform.h> @@ -63,7 +63,7 @@ static void sftp_err_to_errno(sftp_session sftp) errno = ENODEV; break; default: - mpr_warn("unkown SSH_FX response %d", sftperr); + pr_warn("unkown SSH_FX response %d", sftperr); } } @@ -199,7 +199,7 @@ static void sftp_attr_to_stat(sftp_attributes attr, struct stat *st) st->st_mode |= S_IFIFO; /* really? */ break; default: - mpr_warn("unkown SSH_FILEXFER_TYPE %d", attr->type); + pr_warn("unkown SSH_FILEXFER_TYPE %d", attr->type); } } |