diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-29 00:50:16 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-29 00:50:16 +0000 |
commit | f66c7593b614bf8e845f9ae9f6c63bf159af8c09 (patch) | |
tree | 6f244b56dfe70385ea813e028544dee1b921fc47 /nuttx/lib | |
parent | 8475b8bf5337bcb83a2ef35d8d03e7fc33535689 (diff) | |
download | px4-nuttx-f66c7593b614bf8e845f9ae9f6c63bf159af8c09.tar.gz px4-nuttx-f66c7593b614bf8e845f9ae9f6c63bf159af8c09.tar.bz2 px4-nuttx-f66c7593b614bf8e845f9ae9f6c63bf159af8c09.zip |
Z16F Debug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@579 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-rw-r--r-- | nuttx/lib/lib_getopt.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/lib/lib_getopt.c b/nuttx/lib/lib_getopt.c index 21b7b1aca..e73ae68d5 100644 --- a/nuttx/lib/lib_getopt.c +++ b/nuttx/lib/lib_getopt.c @@ -1,7 +1,7 @@ /**************************************************************************** * lib_getopt.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -46,16 +46,16 @@ * Global Variables ****************************************************************************/ -char *optarg; /* Optional argument following option */ -int optind = 1; /* Index into argv */ -int optopt = '?'; /* unrecognized option character */ +FAR char *optarg; /* Optional argument following option */ +int optind = 1; /* Index into argv */ +int optopt = '?'; /* unrecognized option character */ /**************************************************************************** * Private Variables ****************************************************************************/ -static char *g_optptr = NULL; -static boolean g_binitialized = FALSE; +static FAR char *g_optptr = NULL; +static boolean g_binitialized = FALSE; /**************************************************************************** * Global Functions @@ -101,7 +101,7 @@ static boolean g_binitialized = FALSE; * ****************************************************************************/ -int getopt(int argc, char *const argv[], const char *optstring) +int getopt(int argc, FAR char *const argv[], FAR const char *optstring) { if (argv && optstring) { |