X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=client%2Fadmin.c;h=b2579a1b6f1f3a111cd811857d3abf68d2e3d6d8;hp=46cf777ea3f08188bc65e00896ca8fa243ded641;hb=55003dbfec0492fabba2dcfaffc7a4c698742f98;hpb=088c938eb8a4c6e4db96603e30b3558fd3d67580 diff --git a/client/admin.c b/client/admin.c index 46cf777..b2579a1 100644 --- a/client/admin.c +++ b/client/admin.c @@ -1,37 +1,8 @@ /* - * $Log: admin.c,v $ - * Revision 1.10 2001-07-19 19:51:41 adam - * Added typecasts to make C++ happy. - * - * Revision 1.9 2001/02/21 13:46:53 adam - * C++ fixes. - * - * Revision 1.8 2000/04/17 14:21:38 adam - * WIN32 update. - * - * Revision 1.7 2000/04/05 07:39:54 adam - * Added shared library support (libtool). - * - * Revision 1.6 2000/03/20 19:06:25 adam - * Added Segment request for fronend server. Work on admin for client. - * - * Revision 1.5 2000/03/17 12:47:02 adam - * Minor changes to admin client. - * - * Revision 1.4 2000/03/16 13:55:49 ian - * Added commands for sending shutdown and startup admin requests via the admin ES. - * - * Revision 1.3 2000/03/14 15:23:17 ian - * Removed unwanted ifdef and include of zes-admin.h - * - * Revision 1.2 2000/03/14 14:06:04 ian - * Minor change to order of debugging output for send_apdu, - * fixed encoding of admin request. - * - * Revision 1.1 2000/03/14 09:27:07 ian - * Added code to enable sending of admin extended service requests - * + * Copyright (c) 1995-2001, Index Data + * See the file LICENSE for details. * + * $Id: admin.c,v 1.12 2002-01-17 21:04:43 adam Exp $ */ #include @@ -39,9 +10,7 @@ #include #include -#ifdef WIN32 - -#else +#if HAVE_FNMATCH_H #include #include #include @@ -60,7 +29,6 @@ #include -#ifdef ASN_COMPILED /* Helper functions to get to various statics in the client */ ODR getODROutputStream(); @@ -207,15 +175,7 @@ int cmd_adm_drop(char* arg) N.B. That in this case, the import may contain instructions to delete records as well as new or updates to existing records */ -#ifdef WIN32 -int cmd_adm_import(char *arg) -{ - printf ("not available on WIN32\n"); - return 0; -} - -#else - +#if HAVE_FNMATCH_H int cmd_adm_import(char *arg) { char type_str[20], dir_str[1024], pattern_str[1024]; @@ -297,6 +257,12 @@ int cmd_adm_import(char *arg) closedir(dir); return 2; } +#else +int cmd_adm_import(char *arg) +{ + printf ("not available on WIN32\n"); + return 0; +} #endif int cmd_adm_import2(char* arg) @@ -390,4 +356,3 @@ int cmd_adm_startup(char* arg) sendAdminES(Z_ESAdminOriginPartToKeep_start, NULL); return 2; } -#endif