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

« back to all changes in this revision

Viewing changes to src/scout/scout.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:
15
15
#include <afs/param.h>
16
16
 
17
17
RCSID
18
 
    ("$Header: /cvs/openafs/src/scout/scout.c,v 1.9.2.1 2006/03/09 06:42:04 shadow Exp $");
 
18
    ("$Header: /cvs/openafs/src/scout/scout.c,v 1.9.2.4 2007/11/26 21:21:55 shadow Exp $");
19
19
 
20
20
#undef  IN
21
21
#ifdef  AFS_AIX32_ENV
22
22
#include <signal.h>
23
23
#endif
24
 
#ifdef HAVE_STRING_H
25
24
#include <string.h>
26
 
#else
27
 
#ifdef HAVE_STRINGS_H
28
 
#include <strings.h>
29
 
#endif
30
 
#endif
31
25
#undef IN
32
26
#include <gtxwindows.h>         /*Generic window package */
33
27
#include <gtxobjects.h>         /*Object definitions */
2216
2210
 *      Initializes this program.
2217
2211
 *------------------------------------------------------------------------*/
2218
2212
 
2219
 
static int scoutInit(as, arock)
2220
 
     struct cmd_syndesc *as;
2221
 
     char *arock;
2222
 
 
 
2213
static int scoutInit(struct cmd_syndesc *as, void *arock)
2223
2214
{                               /*scoutInit */
2224
2215
 
2225
2216
    static char rn[] = "scoutInit";     /*Routine name */
2355
2346
    /*
2356
2347
     * Set up the commands we understand.
2357
2348
     */
2358
 
    ts = cmd_CreateSyntax("initcmd", scoutInit, 0, "initialize the program");
 
2349
    ts = cmd_CreateSyntax("initcmd", scoutInit, NULL, "initialize the program");
2359
2350
    cmd_AddParm(ts, "-server", CMD_LIST, CMD_REQUIRED,
2360
2351
                "FileServer name(s) to monitor");
2361
2352
    cmd_AddParm(ts, "-basename", CMD_SINGLE, CMD_OPTIONAL,
2387
2378
    } else
2388
2379
        scout_CleanExit(0);
2389
2380
 
 
2381
    return 0; /* not reachable */
2390
2382
}                               /*main */