projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add crc8
[oweals/gnunet.git]
/
src
/
util
/
getopt.c
diff --git
a/src/util/getopt.c
b/src/util/getopt.c
index 415bb4b6b742cae7f1cf8f32e9cc25d4836287a3..e150496ae22989f29a909ca5f33c9fc74fa0a29e 100644
(file)
--- a/
src/util/getopt.c
+++ b/
src/util/getopt.c
@@
-3,7
+3,7
@@
"Keep this file name-space clean" means, talk to roland@gnu.ai.mit.edu
before changing it!
"Keep this file name-space clean" means, talk to roland@gnu.ai.mit.edu
before changing it!
- Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97
+ Copyright
Copyright
(C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97
Free Software Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C Library.
Free Software Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C Library.
@@
-11,7
+11,7
@@
Bugs can be reported to bug-glibc@prep.ai.mit.edu.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
-Free Software Foundation; either version
2
, or (at your option) any
+Free Software Foundation; either version
3
, or (at your option) any
later version.
This program is distributed in the hope that it will be useful,
later version.
This program is distributed in the hope that it will be useful,
@@
-21,12
+21,12
@@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 5
9 Temple Place - Suite 330, Boston, MA 02111-1307
,
+Foundation, Inc., 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301
,
USA.
This code was heavily modified for GNUnet.
USA.
This code was heavily modified for GNUnet.
-Copyright (C) 2006 Christian Grothoff
+Copyright
Copyright
(C) 2006 Christian Grothoff
*/
/**
*/
/**
@@
-37,10
+37,8
@@
Copyright (C) 2006 Christian Grothoff
* replace main GNU getopt parser with one that
* actually fits our API.
*/
* replace main GNU getopt parser with one that
* actually fits our API.
*/
-
#include "platform.h"
#include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_getopt_lib.h"
+#include "gnunet_util_lib.h"
#ifdef VMS
#include <unixlib.h>
#ifdef VMS
#include <unixlib.h>
@@
-939,8
+937,10
@@
GNUNET_GETOPT_run (const char *binaryOptions,
GNUNET_free (shorts);
GNUNET_free (long_options);
GNUNET_free (shorts);
GNUNET_free (long_options);
- if (cont == GNUNET_SYSERR)
- return GNUNET_SYSERR;
+ if (cont != GNUNET_OK)
+ {
+ return cont;
+ }
return GNoptind;
}
return GNoptind;
}