Changeset 10707


Ignore:
Timestamp:
2005-10-07T10:45:29+13:00 (19 years ago)
Author:
kjdon
Message:

swapped the order of cmd_open and z_cmd_open to avoid a warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/yaz_zclient.c

    r10440 r10707  
    810810}
    811811
     812static int cmd_open(const char *arg)
     813{
     814    if (arg)
     815    {
     816        strncpy (cur_host, arg, sizeof(cur_host)-1);
     817        cur_host[sizeof(cur_host)-1] = 0;
     818    }
     819    return session_connect(cur_host);
     820}
     821
    812822int z_cmd_open(char *host_and_port, char *base)
    813823{
     
    820830}
    821831
    822 static int cmd_open(const char *arg)
    823 {
    824     if (arg)
    825     {
    826         strncpy (cur_host, arg, sizeof(cur_host)-1);
    827         cur_host[sizeof(cur_host)-1] = 0;
    828     }
    829     return session_connect(cur_host);
    830 }
    831832
    832833void try_reconnect()
Note: See TracChangeset for help on using the changeset viewer.