aboutsummaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-04-27 22:15:44 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-02 15:58:33 -0300
commitd1411aebd8c9514a6a5fceaffe6d11f5a8df59f1 (patch)
tree696e9248fad25bfd58abb8efe8b545b0866d9220 /src/fileio.c
parent9b56e3a4cc5480deb5769a712b003c5a0fd9fdf5 (diff)
downloadrneovim-d1411aebd8c9514a6a5fceaffe6d11f5a8df59f1.tar.gz
rneovim-d1411aebd8c9514a6a5fceaffe6d11f5a8df59f1.tar.bz2
rneovim-d1411aebd8c9514a6a5fceaffe6d11f5a8df59f1.zip
Rename buf_modname to modname as they've become the same
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 0296f65608..d4448c2f16 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -3039,7 +3039,7 @@ buf_write (
/*
* Make backup file name.
*/
- backup = buf_modname(rootname, backup_ext, FALSE);
+ backup = modname(rootname, backup_ext, FALSE);
if (backup == NULL) {
vim_free(rootname);
some_error = TRUE; /* out of memory */
@@ -3215,7 +3215,7 @@ nobackup:
if (rootname == NULL)
backup = NULL;
else {
- backup = buf_modname(rootname, backup_ext, FALSE);
+ backup = modname(rootname, backup_ext, FALSE);
vim_free(rootname);
}
@@ -3852,7 +3852,7 @@ restore_backup:
* the backup file our 'original' file.
*/
if (*p_pm && dobackup) {
- char *org = (char *)buf_modname(fname, p_pm, FALSE);
+ char *org = (char *)modname(fname, p_pm, FALSE);
if (backup != NULL) {
struct stat st;
@@ -4644,16 +4644,6 @@ modname (
int prepend_dot /* may prepend a '.' to file name */
)
{
- return buf_modname(fname, ext, prepend_dot);
-}
-
-char_u *
-buf_modname (
- char_u *fname,
- char_u *ext,
- int prepend_dot /* may prepend a '.' to file name */
-)
-{
char_u *retval;
char_u *s;
char_u *e;