Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jun 2010 07:06:54 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/sound/pcm feeder_eq.c feeder_rate.c sound.c
Message-ID:  <201006150707.o5F77GqB063368@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

avg         2010-06-15 07:06:54 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/sound/pcm    feeder_eq.c feeder_rate.c sound.c 
  Log:
  SVN rev 209193 on 2010-06-15 07:06:54Z by avg
  
  sound/pcm: use non-const string as a value with SYSCTL_STRING
  
  Although the sysctls are marked with CTLFLAG_RD and the values will stay
  immutable, current sysctl implementation stores value pointer in
  void* type, which means that const qualifier is discarded anyway
  and some newer compilers complaint about that.
  We can't use de-const trick in sysctl implementation, because in that
  case we could miss an opposite situation where a const value is used
  with CTLFLAG_RW sysctl.
  
  Complaint from: gcc 4.4, clang
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.2       +1 -1      src/sys/dev/sound/pcm/feeder_eq.c
  1.30      +1 -1      src/sys/dev/sound/pcm/feeder_rate.c
  1.124     +1 -1      src/sys/dev/sound/pcm/sound.c



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