I like these kind of diffs, some people don't, ok from me.
On Fri, Jul 13, 2012 at 03:37:08PM +0600, Alexandr Shadchin wrote:
> Use NULL instead of 0 for pointers
>
> --
> Alexandr Shadchin
>
> Index: kbd_wscons.c
> ===================================================================
> RCS file: /cvs/src/sbin/kbd/kbd_wscons.c,v
> retrieving revision 1.25
> diff -u -p -r1.25 kbd_wscons.c
> --- kbd_wscons.c 23 Jun 2008 17:41:21 -0000 1.25
> +++ kbd_wscons.c 13 Jul 2012 09:34:14 -0000
> @@ -93,13 +93,13 @@ struct nameint {
> struct nameint kbdenc_tab[] = {
> KB_ENCTAB
> ,
> - { 0, 0 }
> + { 0, NULL }
> };
>
> struct nameint kbdvar_tab[] = {
> KB_VARTAB
> ,
> - { 0, 0 }
> + { 0, NULL }
> };
>
> extern char *__progname;
> @@ -232,7 +232,7 @@ kbd_list(void)
> }
>
> #ifndef NOKVM
> - if ((kd = kvm_openfiles(NULL, NULL, NULL, O_RDONLY, errbuf)) == 0)
> + if ((kd = kvm_openfiles(NULL, NULL, NULL, O_RDONLY, errbuf)) == NULL)
> errx(1, "kvm_openfiles: %s", errbuf);
>
> if (kvm_nlist(kd, nl) == -1)
>
--
Christiano Farina HAESBAERT
Do NOT send me html mail.