From 11b9184955ff35d3906c75cc9124e8b67dfabf1c Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Thu, 16 Apr 2015 12:25:11 -0700 Subject: [PATCH] Rename _FifoPut to _fifo_put Updating nano kernel functions to follow a consistent naming convention. Part of that process is the removal of camelCase naming conventions for the preferred_underscore_method. Change accomplished with the following script: #!/bin/bash echo "Searching for ${1} to replace with ${2}" find . -type f \( -iname \*.c -o -iname \*.h -o -iname \*.s -o -iname \*.kconf \) \ -not \( -path host/src/genIdt -prune \) \ \ -not \( -path host/src/gen_tables -prune \) \ -print | xargs sed -i "s/"${1}"/"${2}"/g" Signed-off-by: Dan Kalowsky --- kernel/nanokernel/core/nano_mwfifo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/nanokernel/core/nano_mwfifo.c b/kernel/nanokernel/core/nano_mwfifo.c index 5a3601fafd8..4f18db2573a 100644 --- a/kernel/nanokernel/core/nano_mwfifo.c +++ b/kernel/nanokernel/core/nano_mwfifo.c @@ -89,12 +89,12 @@ void nano_fifo_init(struct nano_fifo *chan /* channel to initialize */ chan->stat = 0; } -FUNC_ALIAS(_FifoPut, nano_isr_fifo_put, void); -FUNC_ALIAS(_FifoPut, nano_fiber_fifo_put, void); +FUNC_ALIAS(_fifo_put, nano_isr_fifo_put, void); +FUNC_ALIAS(_fifo_put, nano_fiber_fifo_put, void); /******************************************************************************* * -* _FifoPut - add an element to the end of a fifo +* _fifo_put - add an element to the end of a fifo * * This routine adds an element to the end of a fifo object; it may be called * from either either a fiber or an ISR context. A fiber pending on the fifo @@ -112,7 +112,7 @@ FUNC_ALIAS(_FifoPut, nano_fiber_fifo_put, void); * without introducing a source code migration issue. */ -void _FifoPut(struct nano_fifo *chan, /* channel on which to interact */ +void _fifo_put(struct nano_fifo *chan, /* channel on which to interact */ void *data /* data to send */ ) {