mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Remove extra va_start/va_end calls (bug 17244)
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
2015-09-16 Andreas Schwab <schwab@suse.de>
|
2015-09-16 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
[BZ #17244]
|
||||||
|
* sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
|
||||||
|
Remove extra va_start/va_end calls.
|
||||||
|
|
||||||
[BZ #17243]
|
[BZ #17243]
|
||||||
* posix/execl.c (execl): Add missing va_end.
|
* posix/execl.c (execl): Add missing va_end.
|
||||||
* posix/execle.c (execle): Likewise.
|
* posix/execle.c (execle): Likewise.
|
||||||
|
10
NEWS
10
NEWS
@ -10,11 +10,11 @@ Version 2.23
|
|||||||
* The following bugs are resolved with this release:
|
* The following bugs are resolved with this release:
|
||||||
|
|
||||||
2542, 2543, 2558, 2898, 14341, 14912, 15786, 15918, 16141, 16296, 16517,
|
2542, 2543, 2558, 2898, 14341, 14912, 15786, 15918, 16141, 16296, 16517,
|
||||||
16519, 16520, 16521, 16734, 16973, 16985, 17243, 17787, 17905, 18084,
|
16519, 16520, 16521, 16734, 16973, 16985, 17243, 17244, 17787, 17905,
|
||||||
18086, 18240, 18265, 18370, 18421, 18480, 18525, 18595, 18610, 18618,
|
18084, 18086, 18240, 18265, 18370, 18421, 18480, 18525, 18595, 18610,
|
||||||
18647, 18661, 18674, 18675, 18681, 18757, 18778, 18781, 18787, 18789,
|
18618, 18647, 18661, 18674, 18675, 18681, 18757, 18778, 18781, 18787,
|
||||||
18790, 18795, 18796, 18820, 18823, 18824, 18857, 18863, 18870, 18873,
|
18789, 18790, 18795, 18796, 18820, 18823, 18824, 18857, 18863, 18870,
|
||||||
18875, 18887, 18921, 18952, 18961, 18966, 18967.
|
18873, 18875, 18887, 18921, 18952, 18961, 18966, 18967.
|
||||||
|
|
||||||
* The obsolete header <regexp.h> has been removed. Programs that require
|
* The obsolete header <regexp.h> has been removed. Programs that require
|
||||||
this header must be updated to use <regex.h> instead.
|
this header must be updated to use <regex.h> instead.
|
||||||
|
@ -65,8 +65,6 @@ __old_semctl (int semid, int semnum, int cmd, ...)
|
|||||||
union semun arg;
|
union semun arg;
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
va_start (ap, cmd);
|
|
||||||
|
|
||||||
/* Get the argument only if required. */
|
/* Get the argument only if required. */
|
||||||
arg.buf = NULL;
|
arg.buf = NULL;
|
||||||
switch (cmd)
|
switch (cmd)
|
||||||
@ -85,8 +83,6 @@ __old_semctl (int semid, int semnum, int cmd, ...)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
va_end (ap);
|
|
||||||
|
|
||||||
return INLINE_SYSCALL (ipc, 5, IPCOP_semctl, semid, semnum, cmd,
|
return INLINE_SYSCALL (ipc, 5, IPCOP_semctl, semid, semnum, cmd,
|
||||||
&arg);
|
&arg);
|
||||||
}
|
}
|
||||||
@ -99,8 +95,6 @@ __new_semctl (int semid, int semnum, int cmd, ...)
|
|||||||
union semun arg;
|
union semun arg;
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
va_start (ap, cmd);
|
|
||||||
|
|
||||||
/* Get the argument only if required. */
|
/* Get the argument only if required. */
|
||||||
arg.buf = NULL;
|
arg.buf = NULL;
|
||||||
switch (cmd)
|
switch (cmd)
|
||||||
@ -119,8 +113,6 @@ __new_semctl (int semid, int semnum, int cmd, ...)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
va_end (ap);
|
|
||||||
|
|
||||||
return INLINE_SYSCALL (ipc, 5, IPCOP_semctl, semid, semnum, cmd | __IPC_64,
|
return INLINE_SYSCALL (ipc, 5, IPCOP_semctl, semid, semnum, cmd | __IPC_64,
|
||||||
&arg);
|
&arg);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user