mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
libc/stream: Rename (put|get) to (putc|getc)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
6aef469c19
commit
2c56945fee
3 changed files with 4 additions and 4 deletions
|
|
@ -342,7 +342,7 @@ int main(int argc, FAR char *argv[])
|
|||
/* Initialize the output stream */
|
||||
|
||||
memset(priv, 0, sizeof(struct slcd_chrono_s));
|
||||
priv->stream.put = slcd_putc;
|
||||
priv->stream.putc = slcd_putc;
|
||||
#ifdef CONFIG_STDIO_LINEBUFFER
|
||||
priv->stream.flush = slcd_flush;
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ static void hidkbd_decode(FAR char *buffer, ssize_t nbytes)
|
|||
/* Initialize */
|
||||
|
||||
memset(&state, 0, sizeof(struct kbd_getstate_s));
|
||||
kbdstream.stream.get = hidkbd_getstream;
|
||||
kbdstream.stream.getc = hidkbd_getstream;
|
||||
kbdstream.stream.nget = 0;
|
||||
kbdstream.buffer = buffer;
|
||||
kbdstream.nbytes = nbytes;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/****************************************************************************
|
||||
* apps/examples/clcd/slcd_main.c
|
||||
* apps/examples/slcd/slcd_main.c
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
|
|
@ -269,7 +269,7 @@ int main(int argc, FAR char *argv[])
|
|||
/* Initialize the output stream */
|
||||
|
||||
memset(priv, 0, sizeof(struct slcd_test_s));
|
||||
priv->stream.put = slcd_putc;
|
||||
priv->stream.putc = slcd_putc;
|
||||
#ifdef CONFIG_STDIO_LINEBUFFER
|
||||
priv->stream.flush = slcd_flush;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue