We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 419eeb0 commit bc18314Copy full SHA for bc18314
opal/mca/smsc/xpmem/smsc_xpmem_component.c
@@ -116,10 +116,10 @@ static int mca_smsc_xpmem_component_query(void)
116
char buffer[1024];
117
uintptr_t address_max = 0;
118
while (fgets(buffer, sizeof(buffer), fh)) {
119
- uintptr_t low, high;
+ uintptr_t high;
120
char *tmp;
121
/* each line of /proc/self/maps starts with low-high in hexadecimal (without a 0x) */
122
- low = strtoul(buffer, &tmp, 16);
+ strtoul(buffer, &tmp, 16);
123
high = strtoul(tmp + 1, NULL, 16);
124
if (address_max < high) {
125
address_max = high;
0 commit comments