Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jan 2010 14:51:04 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libc/gen devname.c
Message-ID:  <201001311451.o0VEpEhE068957@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ed          2010-01-31 14:51:04 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/gen         devname.c 
  Log:
  SVN rev 203290 on 2010-01-31 14:51:04Z by ed
  
  Perform some cleanups to devname(3).
  
  - Make sure the mode argument is either a character or a block device.
  - Use S_IS*() instead of checking S_IF*-flags by hand.
  - Don't use kern.devname when the argument is already NODEV.
  - Always call snprintf with the proper amount of arguments corresponding
    with the format.
  - Perform some whitespace fixes. Tabs instead of 4 spaces, missing space
    for return statement.
  - Remove unneeded includes.
  
  Revision  Changes    Path
  1.12      +10 -13    src/lib/libc/gen/devname.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001311451.o0VEpEhE068957>