return;
j->on_network =
- (unsigned long) sfs.f_type == CIFS_MAGIC_NUMBER ||
- (unsigned long) sfs.f_type == CODA_SUPER_MAGIC ||
- (unsigned long) sfs.f_type == NCP_SUPER_MAGIC ||
- (unsigned long) sfs.f_type == NFS_SUPER_MAGIC ||
- (unsigned long) sfs.f_type == SMB_SUPER_MAGIC;
+ F_TYPE_CMP(sfs.f_type, CIFS_MAGIC_NUMBER) ||
+ F_TYPE_CMP(sfs.f_type, CODA_SUPER_MAGIC) ||
+ F_TYPE_CMP(sfs.f_type, NCP_SUPER_MAGIC) ||
+ F_TYPE_CMP(sfs.f_type, NFS_SUPER_MAGIC) ||
+ F_TYPE_CMP(sfs.f_type, SMB_SUPER_MAGIC);
}
static int add_file(sd_journal *j, const char *prefix, const char *filename) {