/*
* --------------------- Required definitions ---------------------
*/
+#include <afsconfig.h>
+#include <afs/param.h>
+
+RCSID("$Header$");
+
#include "uss_vol.h" /*Interface to this module*/
#include "uss_common.h" /*Common definitions*/
#include "uss_procs.h" /*Defs from procs module*/
#include <pwd.h>
#include <netdb.h>
#include <sys/errno.h>
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
+
#include <afs/vlserver.h>
#include <afs/auth.h>
#include <afs/cellconfig.h>
extern int errno;
extern struct rx_connection *UV_Bind();
-extern struct rx_securityClass *rxnull_NewClientSecurityObject();
extern int line;
extern int VL_GetEntryByID();
extern char *hostutil_GetNameByINet();
strcpy(sname.cell, info.name);
sname.instance[0] = 0;
strcpy(sname.name, "afs");
- code = ktc_GetToken(&sname, &ttoken, sizeof(ttoken), (char *)0);
+ code = ktc_GetToken(&sname, &ttoken, sizeof(ttoken), NULL);
if (code) {
fprintf(stderr,
"%s: Couldn't get AFS tokens, running unauthenticated.\n",
th = gethostbyname(a_name);
if (!th)
return(0);
- bcopy(th->h_addr, &addr, sizeof(addr));
+ memcpy(&addr, th->h_addr, sizeof(addr));
return(addr);
} /*uss_vol_GetServer*/
struct stat stbuf;
pws = getpwuid(atoi(uss_Uid));
- if (pws != (struct passwd *)0) {
+ if (pws != NULL) {
/*
* User exists in the password file, so they've been fully
* created and integrated. Return the ``ancient'' mountpoint.
*/
MapHostToNetwork(&vldbEntry);
if (vldbEntry.volumeId[RWVOL] != volID) {
- printf("s: Volume '%s' (ID %d) is not a read/write volume!!\n",
+ printf("%s: Volume '%s' (ID %d) is not a read/write volume!!\n",
uss_whoami, uss_Volume, volID);
return(-1);
}