Commit 10d66ec0 authored by Andreas Schwab's avatar Andreas Schwab
Browse files

(procfs_ttyname): Fix sprintf format to match argument

type.
(system_process_attributes): Likewise.
parent a9a2a6db
2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
* sysdep.c (procfs_ttyname): Fix sprintf format to match argument
type.
(system_process_attributes): Likewise.
2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
* keymap.c (Fmake_sparse_keymap): Purecopy the name.
......
......@@ -3303,7 +3303,7 @@ procfs_ttyname (int rdev)
if (MINOR (rdev) >= minor_beg && MINOR (rdev) <= minor_end)
{
sprintf (name + strlen (name), "%lu", MINOR (rdev));
sprintf (name + strlen (name), "%u", MINOR (rdev));
break;
}
}
......@@ -3374,7 +3374,7 @@ system_process_attributes (Lisp_Object pid)
CHECK_NUMBER_OR_FLOAT (pid);
proc_id = FLOATP (pid) ? XFLOAT_DATA (pid) : XINT (pid);
sprintf (procfn, "/proc/%lu", proc_id);
sprintf (procfn, "/proc/%u", proc_id);
if (stat (procfn, &st) < 0)
return attrs;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment