[BACK]Return to audio_if.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/Attic/audio_if.h between version 1.65 and 1.65.14.1

version 1.65, 2008/03/04 18:23:44 version 1.65.14.1, 2009/10/16 05:43:38
Line 86  typedef struct audio_stream {
Line 86  typedef struct audio_stream {
 static __inline int  static __inline int
 audio_stream_get_space(const audio_stream_t *s)  audio_stream_get_space(const audio_stream_t *s)
 {  {
         return (s->end - s->start) - s->used;          if (s)
                   return (s->end - s->start) - s->used;
           return 0;
 }  }
   
 static __inline int  static __inline int
 audio_stream_get_used(const audio_stream_t *s)  audio_stream_get_used(const audio_stream_t *s)
 {  {
         return s->used;          return s ? s->used : 0;
 }  }
   
 static __inline uint8_t *  static __inline uint8_t *

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.65.14.1

CVSweb <webmaster@jp.NetBSD.org>