/*
- * $Id: afp_dsi.c,v 1.36 2009-04-16 06:17:14 franklahm Exp $
+ * $Id: afp_dsi.c,v 1.37 2009-07-21 13:41:16 didg Exp $
*
* Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
* Copyright (c) 1990,1993 Regents of The University of Michigan.
u_int32_t err, cmd;
u_int8_t function;
struct sigaction action;
- char *afpcmpstr;
+ const char *afpcmpstr;
obj->exit = afp_dsi_die;
obj->reply = (int (*)()) dsi_cmdreply;
/*
- * $Id: afp_options.c,v 1.43 2009-04-30 10:48:38 franklahm Exp $
+ * $Id: afp_options.c,v 1.44 2009-07-21 13:41:16 didg Exp $
*
* Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
* Copyright (c) 1990,1993 Regents of The University of Michigan.
}
/* -[no]setuplog <logtype> <loglevel> [<filename>]*/
- char *optstr;
c = buf;
/* Now THIS is hokey! Multiple occurrences are not supported by our current code, */
/* so I have to loop myself. */
- while (NULL != (c = strstr(c, "-setuplog")))
+ while (NULL != (c = strstr(c, "-setuplog"))) {
+ char *optstr;
if ((optstr = getoption(c, "-setuplog"))) {
setuplog(optstr);
c += sizeof("-setuplog");
}
+ }
if ((c = getoption(buf, "-unsetuplog")))
unsetuplog(c);
/*
- * $Id: fork.c,v 1.60 2009-02-25 22:46:11 didg Exp $
+ * $Id: fork.c,v 1.61 2009-07-21 13:41:16 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
see: http://mirror.linux.org.au/pub/linux.conf.au/2007/video/talks/278.pdf.
*/
int afp_syncfork(obj, ibuf, ibuflen, rbuf, rbuflen )
- AFPObj *obj;
+ AFPObj *obj _U_;
char *ibuf, *rbuf _U_;
int ibuflen _U_, *rbuflen;
{
/*
- * $Id: cnid_metad.c,v 1.12 2009-06-09 11:58:49 franklahm Exp $
+ * $Id: cnid_metad.c,v 1.13 2009-07-21 13:41:16 didg Exp $
*
* Copyright (C) Joerg Lenneis 2003
* All Rights Reserved. See COPYING.
}
/* ------------------ */
-void catch_alarm(int sig) {
+void catch_alarm(int sig _U_) {
alarmed = 1;
}
/*
- * $Id: adouble.h,v 1.38 2009-07-20 23:23:02 didg Exp $
+ * $Id: adouble.h,v 1.39 2009-07-21 13:41:16 didg Exp $
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
*
*/
extern int ad_rebuild_adouble_header __P((struct adouble *));
extern int ad_rebuild_sfm_header __P((struct adouble *));
+extern int ad_copy_header __P((struct adouble *, struct adouble *));
extern int ad_flush __P((struct adouble *));
extern int ad_close __P((struct adouble *, int));
/*
- * $Id: ad_attr.c,v 1.9 2009-06-19 13:38:34 franklahm Exp $
+ * $Id: ad_attr.c,v 1.10 2009-07-21 13:41:16 didg Exp $
*/
#ifdef HAVE_CONFIG_H
*/
int ad_getattr(const struct adouble *ad, u_int16_t *attr)
{
- *attr = 0;
u_int16_t fflags;
+ *attr = 0;
if (ad->ad_version == AD_VERSION1) {
if (ad_getentryoff(ad, ADEID_FILEI)) {
/*
- * $Id: ad_flush.c,v 1.9 2007-04-11 01:11:10 didg Exp $
+ * $Id: ad_flush.c,v 1.10 2009-07-21 13:41:16 didg Exp $
*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
int ad_copy_header(struct adouble *add, struct adouble *ads)
{
u_int32_t eid;
- int len;
+ u_int32_t len;
for ( eid = 0; eid < ADEID_MAX; eid++ ) {
if ( ads->ad_eid[ eid ].ade_off == 0 ) {
/*
- * $Id: ad_open.c,v 1.44 2009-07-20 23:23:02 didg Exp $
+ * $Id: ad_open.c,v 1.45 2009-07-21 13:41:16 didg Exp $
*
* Copyright (c) 1999 Adrian Sun (asun@u.washington.edu)
* Copyright (c) 1990,1991 Regents of The University of Michigan.
#endif
/* --------------------------- */
-static int ad_check_size(struct adouble *ad, struct stat *st)
+static int ad_check_size(struct adouble *ad _U_, struct stat *st)
{
if (st->st_size > 0 && st->st_size < AD_DATASZ1)
return 1;
}
/* --------------------------- */
-static int ad_check_size_sfm(struct adouble *ad, struct stat *st)
+static int ad_check_size_sfm(struct adouble *ad _U_, struct stat *st)
{
if (st->st_size > 0 && st->st_size < AD_SFM_LEN)
return 1;
}
/* --------------------------- */
-static int ad_header_upgrade_none(struct adouble *ad, char *name)
+static int ad_header_upgrade_none(struct adouble *ad _U_, char *name _U_)
{
return 0;
}
/*
- * $Id: cnid_dbd.c,v 1.8 2009-05-28 10:22:07 franklahm Exp $
+ * $Id: cnid_dbd.c,v 1.9 2009-07-21 13:41:16 didg Exp $
*
* Copyright (C) Joerg Lenneis 2003
* All Rights Reserved. See COPYING.
time(&orig);
while (1) {
if (db->fd == -1) {
- LOG(log_debug, logtype_cnid, "transmit: connecting to cnid_dbd ...");
struct cnid_dbd_rqst rqst_stamp;
struct cnid_dbd_rply rply_stamp;
char stamp[ADEDLEN_PRIVSYN];
+ LOG(log_debug, logtype_cnid, "transmit: connecting to cnid_dbd ...");
if ((db->fd = init_tsock(db)) < 0) {
time(&t);
if (t - orig > MAX_DELAY)