From 99c1e0beb1b7aebfe7f3f10b73da8b6795d11464 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Mon, 30 Jun 2008 23:53:22 +0000 Subject: [PATCH] disconnected-merge-conflict-20080630 LICENSE BSD Fix a disconnected-mode merge conflict with an older import of disconnected to HEAD that caused a duplicate definition of PDiscon. I believe this problem was only on HEAD. --- src/afs/afs_pioctl.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 83a8288a5..20a980755 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -3973,29 +3973,6 @@ DECL_PIOCTL(PCallBackAddr) return 0; } -DECL_PIOCTL(PDiscon) -{ -#ifdef AFS_DISCON_ENV - static afs_int32 mode; - - if (ainSize == sizeof(afs_int32)) { - memcpy(&mode, ain, sizeof(afs_int32)); - - /* 3 is magic, should be a #define. */ - afs_SetCheckServerNATmode(mode == 3); - } else if (ainSize != 0) { - return EINVAL; - } - - /* Return new mode */ - memcpy(aout, &mode, sizeof(afs_int32)); - *aoutSize = sizeof(struct VenusFid); - return 0; -#else - return EINVAL; -#endif -} - DECL_PIOCTL(PDiscon) { #ifdef AFS_DISCON_ENV -- 2.39.5