[PATCH 05/12] include: common.h: move out user interface functions into stdio.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These two functions fit nicely with the other functions in stdio.h,
which is already being included by common.h.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 include/common.h | 4 ----
 include/stdio.h  | 3 +++
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/include/common.h b/include/common.h
index bab03a0444f7..9a0b4768b015 100644
--- a/include/common.h
+++ b/include/common.h
@@ -28,10 +28,6 @@
  */
 void reginfo(void);
 
-char *size_human_readable(unsigned long long size);
-
-int	readline	(const char *prompt, char *buf, int len);
-
 /* common/memsize.c */
 long	get_ram_size  (volatile long *, long);
 
diff --git a/include/stdio.h b/include/stdio.h
index 33ca73a80d18..1ed7e1d3e38b 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -79,6 +79,9 @@ static inline void ctrlc_handled(void)
 
 #endif
 
+char *size_human_readable(unsigned long long size);
+int readline(const char *prompt, char *buf, int len);
+
 #if (!defined(__PBL__) && !defined(CONFIG_CONSOLE_NONE)) || \
 	(defined(__PBL__) && defined(CONFIG_PBL_CONSOLE))
 static inline int puts(const char *s)
-- 
2.39.5





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux