OSDN Git Service

Revert "<sched.h> should offer both __sched_priority and sched_priority."
authorDan Albert <danalbert@google.com>
Fri, 21 Nov 2014 18:22:09 +0000 (10:22 -0800)
committerDan Albert <danalbert@google.com>
Fri, 21 Nov 2014 18:24:40 +0000 (10:24 -0800)
This was only ever added to keep strace compiling, but strace has
since (actually, prior) fixed their source to use the less ugly name,
so we don't need this anymore (good riddance, #define!).

This reverts commit bbb34f9536db8234b0b43bd5333256fa4accc50e.

libc/include/sched.h

index 6155ab7..4f9e2a6 100644 (file)
@@ -39,9 +39,8 @@ __BEGIN_DECLS
 #define SCHED_OTHER SCHED_NORMAL
 
 struct sched_param {
-  int __sched_priority;
+  int sched_priority;
 };
-#define sched_priority __sched_priority
 
 extern int sched_setscheduler(pid_t, int, const struct sched_param*);
 extern int sched_getscheduler(pid_t);