IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 19, 2006, 4:16:26 PM (20 years ago)
Author:
jhoblitt
Message:

compilation fixes
switch to using the metadatadb API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxadminConfig.c

    r5881 r6060  
     1# include <pmConfig.h>
    12# include "p2search.h"
    23
    3 bool p2adminConfig (psConfig *config, int argc, char **argv) {
     4bool p2adminConfig (p2Config *config, int argc, char **argv) {
    45
    56    // Parse the configurations (re-org a la ppImage)
     
    1516    config->arguments = psMetadataAlloc(); // The arguments, with default values
    1617
     18    int N;
    1719    config->mode = P2_MODE_NONE;
    18     if ((N = psArgumentGet (*argc, argv, "-create"))) {
    19         psArgumentRemove (N, argc, argv);
     20    if ((N = psArgumentGet (argc, argv, "-create"))) {
     21        psArgumentRemove (N, &argc, argv);
    2022        if (config->mode) psAbort ("p2search", "only one mode selection is allowed");
    2123        config->mode = P2_MODE_CREATE;
    2224    }
    23     if ((N = psArgumentGet (*argc, argv, "-delete"))) {
    24         psArgumentRemove (N, argc, argv);
     25    if ((N = psArgumentGet (argc, argv, "-delete"))) {
     26        psArgumentRemove (N, &argc, argv);
    2527        if (config->mode) psAbort ("p2search", "only one mode selection is allowed");
    2628        config->mode = P2_MODE_DELETE;
     
    3840    psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-delete", 0, "delete the P2 tables", "");
    3941
    40     if ((N = psArgumentGet (*argc, argv, "-help"))) {
     42    if ((N = psArgumentGet (argc, argv, "-help"))) {
    4143        psArgumentHelp(config->arguments);
    4244        psFree(config->arguments);
Note: See TracChangeset for help on using the changeset viewer.