chiark / gitweb /
journal, shared: fix warnings during compilation on 32 bits
[elogind.git] / src / journal / sd-journal.c
index c86f1eaab15c957daac409bee1ff07ae18521b1b..41f0c4dfb4bc677ae57df8b50bc2b60b5057bb1f 100644 (file)
@@ -1205,7 +1205,7 @@ static void check_network(sd_journal *j, int fd) {
                 return;
 
         j->on_network =
-                sfs.f_type == CIFS_MAGIC_NUMBER ||
+                (long)sfs.f_type == (long)CIFS_MAGIC_NUMBER ||
                 sfs.f_type == CODA_SUPER_MAGIC ||
                 sfs.f_type == NCP_SUPER_MAGIC ||
                 sfs.f_type == NFS_SUPER_MAGIC ||