From 88fd6ef72e209cccb054fac7dbd1873d4cf4b91c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 14 Mar 2016 07:47:26 -0600 Subject: [PATCH] Rename builtin/builtin.c to builtin/builtin_forindex.c --- builtin/Makefile | 2 +- builtin/{builtin.c => builtin_forindex.c} | 21 +++------------------ 2 files changed, 4 insertions(+), 19 deletions(-) rename builtin/{builtin.c => builtin_forindex.c} (76%) diff --git a/builtin/Makefile b/builtin/Makefile index 9fd170be5..29f828dc7 100644 --- a/builtin/Makefile +++ b/builtin/Makefile @@ -39,7 +39,7 @@ include $(APPDIR)/Make.defs # Source and object files ASRCS = -CSRCS = builtin.c builtin_list.c exec_builtin.c +CSRCS = builtin_forindex.c builtin_list.c exec_builtin.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) diff --git a/builtin/builtin.c b/builtin/builtin_forindex.c similarity index 76% rename from builtin/builtin.c rename to builtin/builtin_forindex.c index d26f0a044..ba8b184e7 100644 --- a/builtin/builtin.c +++ b/builtin/builtin_forindex.c @@ -1,8 +1,8 @@ /**************************************************************************** - * apps/builtin/builtin.c + * apps/builtin/builtin_forindex.c * * Copyright (C) 2011 Uros Platise. All rights reserved. - * Copyright (C) 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2016 Gregory Nutt. All rights reserved. * Authors: Uros Platise * Gregory Nutt * @@ -43,14 +43,6 @@ #include -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Function Prototypes - ****************************************************************************/ - /**************************************************************************** * Public Data ****************************************************************************/ @@ -58,14 +50,6 @@ extern const struct builtin_s g_builtins[]; extern const int g_builtin_count; -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -76,5 +60,6 @@ FAR const struct builtin_s *builtin_for_index(int index) { return &g_builtins[index]; } + return NULL; }