1
1

Merge branch '1550_add_forgotten_include'

* 1550_add_forgotten_include:
  code clean up
  Add forgotten '#include <stdio.h>' into src/viewer/internal.h for recognize FILE type.
Этот коммит содержится в:
Slava Zanko 2009-08-28 23:22:57 +03:00
родитель 1d4e1673ff d89306849c
Коммит eb35e00f09
3 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -519,7 +519,7 @@ mcview_moveto_line_cmd (mcview_t * view)
g_snprintf (prompt, sizeof (prompt), g_snprintf (prompt, sizeof (prompt),
_(" The current line number is %lld.\n" _(" The current line number is %lld.\n"
" Enter the new line number:"), (line + 1), ""); " Enter the new line number:"), (line + 1));
answer = input_dialog (_(" Goto line "), prompt, MC_HISTORY_VIEW_GOTO_LINE, ""); answer = input_dialog (_(" Goto line "), prompt, MC_HISTORY_VIEW_GOTO_LINE, "");
if (answer != NULL && answer[0] != '\0') { if (answer != NULL && answer[0] != '\0') {
errno = 0; errno = 0;

Просмотреть файл

@ -2,6 +2,7 @@
#define MC_VIEWER_INTERNAL_H #define MC_VIEWER_INTERNAL_H
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include "../src/global.h" #include "../src/global.h"

Просмотреть файл

@ -275,7 +275,6 @@ mcview_load (mcview_t * view, const char *command, const char *file, int start_l
int i, type; int i, type;
int fd = -1; int fd = -1;
char tmp[BUF_MEDIUM]; char tmp[BUF_MEDIUM];
const char *enc;
char *canon_fname; char *canon_fname;
struct stat st; struct stat st;
#ifdef HAVE_CHARSET #ifdef HAVE_CHARSET