Bonjour à tous,

Je préfère prévenir de suite : j'ai quelques notions en langage C mais sans plus.
Je présente mon problème : suite à un changement de machine Unix, un programme permettant de faire des stats ne fonctionne plus correctement. Il a été développé il y a quelques années.
J'ai tenté de le recompiler sur la nouvelle machine et j'ai ce message d'erreur (warning) :
"statsMens.c", line 315: warning: argument #3 is incompatible with prototype:
prototype: pointer to function(pointer to const char, pointer to const struct stat {unsigned long st_dev, array[3] of long st_pad1, unsigned long st_ino, unsigned long st_mode, unsigned long st_nlink, long st_uid, long st_gid, unsigned long st_rdev, array[2] of long st_pad2, long st_size, long st_pad3, struct timespec {..} st_atim, struct timespec {..} st_mtim, struct timespec {..} st_ctim, long st_blksize, long st_blocks, array[16] of char st_fstype, array[8] of long st_pad4}, int) returning int : "ftw.h", line 107
argument : pointer to function(pointer to char, pointer to struct stat {unsigned long st_dev, array[3] of long st_pad1, unsigned long st_ino, unsigned long st_mode, unsigned long st_nlink, long st_uid, long st_gid, unsigned long st_rdev, array[2] of long st_pad2, long st_size, long st_pad3, struct timespec {..} st_atim, struct timespec {..} st_mtim, struct timespec {..} st_ctim, long st_blksize, long st_blocks, array[16] of char st_fstype, array[8] of long st_pad4}, int) returning int
sur mon programme c, j'effectue l'appel suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
ftw(nomRepertoireStats, traiteFS, 10);
Pouvez-vous m'aider ?
N'hésitez pas à me demander plus d'infos si besoin.