mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-08-25 02:36:07 +00:00
Do the sscanf into a gulong and then assign to the inode which is of type
Tue Jun 20 01:49:08 2000 George Lebl <jirka@5z.com> * test/nautilus-leak-symbol-lookup.c (nautilus_leak_symbol_map_get_offsets): Do the sscanf into a gulong and then assign to the inode which is of type ino_t to avoid #ifdefs or other hacks to make it work on alpha.
This commit is contained in:
parent
fd26d27ba5
commit
0d05aea1fc
|
@ -1,3 +1,10 @@
|
|||
Tue Jun 20 01:49:08 2000 George Lebl <jirka@5z.com>
|
||||
|
||||
* test/nautilus-leak-symbol-lookup.c
|
||||
(nautilus_leak_symbol_map_get_offsets): Do the sscanf into a
|
||||
gulong and then assign to the inode which is of type ino_t to avoid
|
||||
#ifdefs or other hacks to make it work on alpha.
|
||||
|
||||
2000-06-19 Maciej Stachowiak <mjs@eazel.com>
|
||||
|
||||
FIXME 1262 believed fixed now:
|
||||
|
|
|
@ -102,9 +102,11 @@ nautilus_leak_symbol_map_get_offsets (NautilusLeakSymbolLookupMap *map)
|
|||
}
|
||||
|
||||
while (fgets(buffer, 1023, in)) {
|
||||
gulong tmp;
|
||||
|
||||
count = sscanf (buffer, "%lx-%lx %15s %*x %u:%u %lu %255s",
|
||||
&start, &end, perms, &major, &minor, &inode, file);
|
||||
&start, &end, perms, &major, &minor, &tmp, file);
|
||||
inode = tmp;
|
||||
|
||||
if (count >= 6 && strcmp (perms, "r-xp") == 0) {
|
||||
if (stat (file, &entry_stat) != 0) {
|
||||
|
|
Loading…
Reference in a new issue