aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-04 07:48:51 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-04 07:48:51 +0530
commitb5de18c28fabfc96bf865dfe55196d13f5a607c5 (patch)
tree2da655acc8ef699c723d3934af93cb5e7abb4131 /src
parent625c8d11f48e4f76f559559021c057479dc0652d (diff)
downloadnnn-b5de18c28fabfc96bf865dfe55196d13f5a607c5.tar.gz
Use const type
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 1a2ad77..19adf93 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -693,7 +693,7 @@ static inline bool getutil(char *util);
static size_t mkpath(const char *dir, const char *name, char *out);
static char *xgetenv(const char *name, char *fallback);
static bool plugscript(const char *plugin, const char *path, uchar flags);
-static char *load_input(int fd, char *path);
+static char *load_input(int fd, const char *path);
/* Functions */
@@ -6432,7 +6432,7 @@ static char *make_tmp_tree(char **paths, ssize_t entries, const char *prefix)
return tmpdir;
}
-static char *load_input(int fd, char *path)
+static char *load_input(int fd, const char *path)
{
/* 512 KiB chunk size */
ssize_t i, chunk_count = 1, chunk = 512 * 1024, entries = 0;