summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/procmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/procmap.c b/examples/procmap.c
index f54d31f6..9da8cf40 100644
--- a/examples/procmap.c
+++ b/examples/procmap.c
@@ -95,7 +95,7 @@ main (int argc, char *argv [])
unsigned device, device_major, device_minor;
char perm [5];
- if (maps [i].flags & GLIBTOP_MAP_ENTRY_FILENAME)
+ if (maps [i].flags & (1 << GLIBTOP_MAP_ENTRY_FILENAME))
filename = maps [i].filename;
#ifdef GLIBTOP_INODEDB