Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jun 2007 18:02:24 +0000 (UTC)
From:      David Malone <dwmalone@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sbin/sysctl sysctl.c
Message-ID:  <200706041802.l54I2ONH017987@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
dwmalone    2007-06-04 18:02:24 UTC

  FreeBSD src repository

  Modified files:
    sbin/sysctl          sysctl.c 
  Log:
  Use common code for printing ints and longs by coppying the sysctl
  value into a variable of the right type and then printing it via
  an intmax_t. This makes avoids some duplication and makes it easy
  to add a new integer format Q for printing things of type CTLTYPE_QUAD.
  
  Revision  Changes    Path
  1.82      +42 -42    src/sbin/sysctl/sysctl.c



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