[JDEV] Porting to hp-ux

Doug Claar doug at claar.org
Sat Jun 16 23:35:51 CDT 2001


I have been pestering :-) folks on the jadmin list about porting jabberd
to hp-ux, and they kindly pointed me to this list. I have some questions.

In jabberd/deliver.c, the function "void deliver" tries to return a value!

    /* catch the @-internal xdb crap */
    if(p->type == p_XDB && *(p->host) == '-')
        return deliver_internal(p, i);

I'm guessing that it should really be:

    /* catch the @-internal xdb crap */
    if(p->type == p_XDB && *(p->host) == '-') {
        deliver_internal(p, i);
        return;
    }

Does this look right to y'all?

In jabberd/jabberd.c, there is the line:

    if((home = ghash_get(cmd__line,"H")) == NULL)
        home = pstrdup(jabberd__runtime, HOME);

I think this is trying to get the HOME environment variable? If so, then
I think that it should be:

    if((home = ghash_get(cmd__line,"H")) == NULL)
        home = pstrdup(jabberd__runtime, getenv("HOME"));

I've found a bunch of other minor things, some of which I've described
over in jadmin, but I've been able to work around them. I *think* I've
worked around these, too, but I'm less confident about them...

Thanks,
==Doug Claar



More information about the JDev mailing list