Compare commits
No commits in common. "34ed1e8121c2eb14f862c2e74e03de180c4fd450" and "1920c9d55b759b5db7dcf2169dff5c601166c50a" have entirely different histories.
34ed1e8121
...
1920c9d55b
3
CheckResolv/.gitignore
vendored
3
CheckResolv/.gitignore
vendored
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
checkresolv
|
|
||||||
|
|
@ -51,7 +51,8 @@ hexdiff: Makefile $(OBJECTS)
|
|||||||
install:
|
install:
|
||||||
cp hexdiff hexdiff.install
|
cp hexdiff hexdiff.install
|
||||||
strip hexdiff.install
|
strip hexdiff.install
|
||||||
mv hexdiff.install $(OU_LE_METTRE)/bin/hexdiff
|
cp hexdiff.install $(OU_LE_METTRE)/bin/hexdiff
|
||||||
|
rm hexdiff.install
|
||||||
cp hexdiff.1 $(OU_LE_METTRE)/man/man1/hexdiff.1
|
cp hexdiff.1 $(OU_LE_METTRE)/man/man1/hexdiff.1
|
||||||
@echo "you can copy hexdiff.rc in your HOME as .hexdiffrc"
|
@echo "you can copy hexdiff.rc in your HOME as .hexdiffrc"
|
||||||
|
|
||||||
|
@ -28,9 +28,9 @@
|
|||||||
static void prtime(time_t t, char *pstr)
|
static void prtime(time_t t, char *pstr)
|
||||||
{
|
{
|
||||||
struct tm *ptm;
|
struct tm *ptm;
|
||||||
|
int foo;
|
||||||
ptm = gmtime(&t);
|
ptm = gmtime(&t);
|
||||||
strftime(pstr, 99, "%Y-%m-%d %H:%M:%S", ptm);
|
foo = strftime(pstr, 99, "%Y-%m-%d %H:%M:%S", ptm);
|
||||||
}
|
}
|
||||||
/*----------------------------------------------------------------*/
|
/*----------------------------------------------------------------*/
|
||||||
#define W_FILEINFO 48
|
#define W_FILEINFO 48
|
||||||
|
@ -33,14 +33,17 @@ struct stat statbuf;
|
|||||||
Fichier *fichier;
|
Fichier *fichier;
|
||||||
long offset;
|
long offset;
|
||||||
|
|
||||||
if ( (fd=open(nom, O_RDONLY)) < 0) {
|
if ( (fd=open(nom, O_RDONLY)) < 0)
|
||||||
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fenetre_active==0) {
|
if (fenetre_active==0)
|
||||||
|
{
|
||||||
fichier = &f1; offset = f2.offset;
|
fichier = &f1; offset = f2.offset;
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
fichier = &f2; offset = f1.offset;
|
fichier = &f2; offset = f1.offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -54,7 +57,6 @@ close(fichier->fd);
|
|||||||
*/
|
*/
|
||||||
strncpy(fichier->nom, nom, T_NOM);
|
strncpy(fichier->nom, nom, T_NOM);
|
||||||
foo = fstat(fd, &statbuf);
|
foo = fstat(fd, &statbuf);
|
||||||
if (foo) perror(__func__);
|
|
||||||
fichier->fd = fd;
|
fichier->fd = fd;
|
||||||
fichier->taille = statbuf.st_size;
|
fichier->taille = statbuf.st_size;
|
||||||
fichier->offset = offset;
|
fichier->offset = offset;
|
||||||
|
@ -45,7 +45,6 @@ static int teste_dirent(const struct dirent *de, struct stat *pstat)
|
|||||||
int foo;
|
int foo;
|
||||||
|
|
||||||
foo = stat(de->d_name, pstat);
|
foo = stat(de->d_name, pstat);
|
||||||
if (foo) perror(__func__);
|
|
||||||
|
|
||||||
if (S_ISDIR(pstat->st_mode))
|
if (S_ISDIR(pstat->st_mode))
|
||||||
return 0;
|
return 0;
|
||||||
@ -110,6 +109,7 @@ static int liste_fichiers(WINDOW *win, int flag)
|
|||||||
DIR *dir;
|
DIR *dir;
|
||||||
struct dirent *de;
|
struct dirent *de;
|
||||||
struct stat statbuf;
|
struct stat statbuf;
|
||||||
|
int foo;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* initializing local vars, for list-of-files
|
* initializing local vars, for list-of-files
|
||||||
@ -154,7 +154,7 @@ while ( (de=readdir(dir)) != NULL)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
closedir(dir);
|
foo = closedir(dir);
|
||||||
|
|
||||||
return nombre;
|
return nombre;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user