summaryrefslogtreecommitdiff
path: root/src/journal/sd-journal.c
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-04-17 18:23:17 +0200
committerHarald Hoyer <harald@redhat.com>2013-04-17 18:23:17 +0200
commitcddf148028f525be8176e7f1cbbf4f862bd287f6 (patch)
tree7930adc3be2637b70d869236743c457f66abf3b8 /src/journal/sd-journal.c
parent8c68a70170b31f93c287f29fd06c6c17edaf19ad (diff)
fixup 8c68a7017 and cast to (unsigned long)
Diffstat (limited to 'src/journal/sd-journal.c')
-rw-r--r--src/journal/sd-journal.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index ba6c1cd30f..6d0f363faf 100644
--- a/src/journal/sd-journal.c
+++ b/src/journal/sd-journal.c
@@ -1248,11 +1248,11 @@ static void check_network(sd_journal *j, int fd) {
return;
j->on_network =
- (unsigned) sfs.f_type == CIFS_MAGIC_NUMBER ||
- (unsigned) sfs.f_type == CODA_SUPER_MAGIC ||
- (unsigned) sfs.f_type == NCP_SUPER_MAGIC ||
- (unsigned) sfs.f_type == NFS_SUPER_MAGIC ||
- (unsigned) sfs.f_type == SMB_SUPER_MAGIC;
+ (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;
}
static int add_file(sd_journal *j, const char *prefix, const char *filename) {