{
char_u *sn_name;
# ifdef UNIX
- int sn_dev;
+ int sn_dev_valid;
+ dev_t sn_dev;
ino_t sn_ino;
# endif
# ifdef FEAT_PROFILE
/* Compare dev/ino when possible, it catches symbolic
* links. Also compare file names, the inode may change
* when the file was edited. */
- ((stat_ok && si->sn_dev != -1)
+ ((stat_ok && si->sn_dev_valid)
&& (si->sn_dev == st.st_dev
&& si->sn_ino == st.st_ino)) ||
# endif
# ifdef UNIX
if (stat_ok)
{
+ si->sn_dev_valid = TRUE;
si->sn_dev = st.st_dev;
si->sn_ino = st.st_ino;
}
else
- si->sn_dev = -1;
+ si->sn_dev_valid = FALSE;
# endif
/* Allocate the local script variables to use for this script. */