diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2018-10-18 23:00:15 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2018-10-18 23:00:15 +0530 |
commit | e2f65e4e70d96d7a570e4103623b8401ec1c9579 (patch) | |
tree | ae28b2e5ab37ff7286de986064edac8076ccc369 | |
parent | f8b492803f205f1d85fbfa443167f4541a054381 (diff) | |
download | nnn-e2f65e4e70d96d7a570e4103623b8401ec1c9579.tar.gz |
Replace printf() with fprintf()
-rw-r--r-- | nnn.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -741,8 +741,8 @@ spawn(const char *file, const char *arg1, const char *arg2, const char *dir, uch /* Show a marker (to indicate nnn spawned shell) */ if (flag & F_MARKER && shlvl != NULL) { - printf("\n +-++-++-+\n | n n n |\n +-++-++-+\n\n"); - printf("Next shell level: %d\n", atoi(shlvl) + 1); + fprintf(stdout, "\n +-++-++-+\n | n n n |\n +-++-++-+\n\n"); + fprintf(stdout, "Next shell level: %d\n", atoi(shlvl) + 1); } /* Suppress stdout and stderr */ @@ -3348,7 +3348,8 @@ nochange: static void usage(void) { - printf("usage: nnn [-b key] [-c N] [-e] [-i] [-l]\n" + fprintf(stdout, + "usage: nnn [-b key] [-c N] [-e] [-i] [-l]\n" " [-p nlay] [-S] [-v] [-h] [PATH]\n\n" "The missing terminal file manager for X.\n\n" "positional args:\n" @@ -3408,7 +3409,7 @@ main(int argc, char *argv[]) player = optarg; break; case 'v': - printf("%s\n", VERSION); + fprintf(stdout, "%s\n", VERSION); return 0; case 'h': // fallthrough default: |