X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=bin%2Funiconv%2Funiconv.c;h=93439cefa965efae35bab8255d0c97d7d1f04780;hb=f254fd618b53e97cc5382b23709d4f3de1e70b41;hp=e6d1daeb4d5fa470bb677687d3fcfc2ec7ad726d;hpb=bee44bcbf6b614d7e737602f27a41d041d8efee7;p=netatalk.git diff --git a/bin/uniconv/uniconv.c b/bin/uniconv/uniconv.c index e6d1daeb..93439cef 100644 --- a/bin/uniconv/uniconv.c +++ b/bin/uniconv/uniconv.c @@ -35,10 +35,13 @@ #include #include #include +#include + #include #include #include #include +#include #include "atalk/cnid.h" #ifndef MAXPATHLEN @@ -57,7 +60,7 @@ char* to_charset; static charset_t ch_mac; char* mac_charset; static int usedots = 0; -static u_int16_t conv_flags = 0; +static uint16_t conv_flags = 0; static int dry_run = 0; static int verbose=0; char *cnid_type; @@ -146,7 +149,7 @@ static char *convert_name(char *name, struct stat *st, cnid_t cur_did) size_t outlen = 0; unsigned char *p,*q; int require_conversion = 0; - u_int16_t flags = conv_flags; + uint16_t flags = conv_flags; cnid_t id; p = (unsigned char *)name; @@ -386,7 +389,7 @@ static int init(char* path) { DIR* startdir; - if (NULL == (cdb = cnid_open (path, 0, cnid_type, 0, "localhost", "4700")) ) { + if (NULL == (cdb = cnid_open (path, 0, cnid_type, 0, "localhost", "4700", NULL, NULL)) ) { fprintf (stderr, "ERROR: cannot open CNID database in '%s'\n", path); fprintf (stderr, "ERROR: check the logs for reasons, aborting\n"); return -1;