blob: 6f86a456301adfac296dd649a686c67fc67d0523 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- nget.cc 2005/01/03 22:04:44 1.135
+++ nget.cc 2008/03/03 06:53:40 1.136
@@ -93,8 +93,8 @@
struct opt_help {
int namelen;
- char *arg;
- char *desc;
+ const char *arg;
+ const char *desc;
};
static opt_help ohelp[NUM_OPTIONS+1];
static int olongestlen=0;
@@ -114,7 +114,7 @@
OPT_MIN_SHORTNAME //sentinel, must be last element.
};
-static void addoption(char *longo,int needarg,char shorto,char *adesc,char *desc){
+static void addoption(const char *longo,int needarg,char shorto,const char *adesc,const char *desc){
static int cur=0;
assert(cur<NUM_OPTIONS);
#ifdef HAVE_LIBPOPT
|