~ubuntu-branches/ubuntu/oneiric/openafs/oneiric-201305130334

« back to all changes in this revision

Viewing changes to src/vlserver/vlclient.c

  • Committer: Bazaar Package Importer
  • Author(s): Russ Allbery
  • Date: 2008-09-22 19:07:02 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080922190702-59m13d7kn6gkw32d
Tags: 1.4.7.dfsg1-6
* Apply upstream patch to free /proc entries in the correct order.
  Thanks, Marc Dionne.  (Closes: #493914)
* Apply upstream deltas to support 2.6.27 kernels and to stop using
  COMMON_KERN_CFLAGS for all 2.6 kernels uniformly, which fixes
  problems on amd64 with newer kernels.  Thanks, Björn Torkelsson.
  (LP: #267504)
* Translation updates:
  - Swedish, thanks Martin Bagge.  (Closes: #493120)

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#include <afs/param.h>
12
12
 
13
13
RCSID
14
 
    ("$Header: /cvs/openafs/src/vlserver/vlclient.c,v 1.12.2.1 2004/10/18 07:12:25 shadow Exp $");
 
14
    ("$Header: /cvs/openafs/src/vlserver/vlclient.c,v 1.12.2.3 2007/10/31 04:13:51 shadow Exp $");
15
15
 
16
16
#include <afs/stds.h>
17
17
#include <sys/types.h>
38
38
#include <netinet/in.h>
39
39
#endif
40
40
#include <stdio.h>
41
 
 
42
 
#ifdef HAVE_STRING_H
43
41
#include <string.h>
44
 
#else
45
 
#ifdef HAVE_STRINGS_H
46
 
#include <strings.h>
47
 
#endif
48
 
#endif
49
42
 
50
43
#include <afs/afsutil.h>
51
44
#include <rx/xdr.h>
192
185
}
193
186
 
194
187
 
195
 
static
196
 
handleit(as)
197
 
     struct cmd_syndesc *as;
 
188
static int
 
189
handleit(struct cmd_syndesc *as, void *arock)
198
190
{
199
191
    register struct cmd_item *ti;
200
192
    register afs_int32 code, server = 0, sawserver = 0;
1038
1030
    afs_int32 code;
1039
1031
 
1040
1032
    strcpy(confdir, AFSDIR_CLIENT_ETC_DIRPATH);
1041
 
    ts = cmd_CreateSyntax("initcmd", handleit, 0, "initialize the program");
 
1033
    ts = cmd_CreateSyntax("initcmd", handleit, NULL, "initialize the program");
1042
1034
    cmd_AddParm(ts, "-cellpath", CMD_LIST, CMD_OPTIONAL,
1043
1035
                "Cell configuration directory");
1044
1036
    cmd_AddParm(ts, "-server", CMD_LIST, CMD_OPTIONAL,