File:  [DVB] / dietlibc / libstdio / vfdprintf.c
Revision 1.3: download - view: text, annotated - select for diffs
Sat May 5 00:30:21 2018 UTC (6 years, 1 month ago) by leitner
Branches: MAIN
CVS tags: HEAD
fix a few gcc 8.1 warnings

#include <stdarg.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include "dietstdio.h"

static int __fwrite(const void*ptr, size_t nmemb, void* cookie) {
  return write((uintptr_t)cookie,ptr,nmemb);
}

int vfdprintf(int fd, const char *format, va_list arg_ptr)
{
  struct arg_printf ap = { (void*)(long)fd, __fwrite };
  return __v_printf(&ap,format,arg_ptr);
}

LinuxTV legacy CVS <linuxtv.org/cvs>