Hi!
> --- a/testcases/kernel/syscalls/sysctl/sysctl01.c
> +++ b/testcases/kernel/syscalls/sysctl/sysctl01.c
> @@ -66,8 +66,6 @@ static int sysctl(int *name, int nlen, void *oldval, size_t
> * oldlenp,
> return syscall(__NR__sysctl, &args);
> }
>
> -#define SIZE(x) sizeof(x)/sizeof(x[0])
> -
> struct utsname buf;
> char osname[BUFSIZ];
> size_t osnamelth;
> @@ -115,7 +113,7 @@ int main(int ac, char **av)
>
> for (i = 0; i < TST_TOTAL; ++i) {
>
> - osnamelth = SIZE(osname);
> + osnamelth = ARRAY_SIZE(osname);
These could be turned into simple sizeof(osname) as sizeof(char) == 1 by
definition.
--
Cyril Hrubis
[email protected]
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list