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:
George Lebl 2000-06-20 08:52:55 +00:00 committed by George Lebl
parent fd26d27ba5
commit 0d05aea1fc
2 changed files with 10 additions and 1 deletions

View file

@ -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:

View file

@ -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) {