struct vcache *avc = VTOAFS(vp);
osi_Assert((avc->f.states & CRO) != 0);
osi_Panic("Dirty pages while flushing a read-only volume vnode.");
- return EIO; /* unreachable */
+ AFS_UNREACHED(return EIO);
}
int
{
AFS_STATCNT(afs_badop);
osi_Panic("afs bad vnode op");
- return 0;
+ AFS_UNREACHED(return 0);
}
/*
default:
db_panic("Illegal hash function type");
- retval = -1; /* not reached */
+ AFS_UNREACHED(return -1);
}
return (retval);
}
default:
db_panic("illegal hash function");
- retval = -1; /* not reached */
+ AFS_UNREACHED(return -1);
}
return (retval);
default:
db_panic("illegal hash function");
}
- /* not reached */
- return 0;
+ AFS_UNREACHED(return 0);
}
/* ht_LookupEntry
if (DErrno != 0) {
printf("Could not read first page in directory (%d)\n", DErrno);
Die("dirok1");
- return 1;
+ AFS_UNREACHED(return 1);
}
printf("First page in directory does not exist.\n");
return 0;
/* couldn't read page, but not because it wasn't there permanently */
printf("Failed to read dir page %d (errno %d)\n", i, DErrno);
Die("dirok2");
- return 1;
+ AFS_UNREACHED(return 1);
}
printf("Directory shorter than alloMap indicates (page %d)\n", i);
return 0;
va_end(ap);
abort();
- printf("BACK FROM ABORT\n"); /* shouldn't come back from floating pt exception */
- exit(1); /* never know, though */
+ AFS_UNREACHED(printf("BACK FROM ABORT\n")); /* shouldn't come back from floating pt exception */
+ AFS_UNREACHED(exit(1)); /* never know, though */
}
int
#ifdef AFS_PTHREAD_ENV
pthread_exit(NULL);
-#endif
-
+ AFS_UNREACHED(return NULL);
+#else
return NULL;
+#endif
}
/*
va_end(ap);
abort();
- ViceLog(0, ("BACK FROM ABORT\n")); /* shouldn't come back */
- exit(1); /* never know, though */
+ AFS_UNREACHED(ViceLog(0, ("BACK FROM ABORT\n")));
+ AFS_UNREACHED(exit(1));
}
/*!
err = cmd_Dispatch(argc, argv);
Exit(err);
- return 0; /* not reached */
+ AFS_UNREACHED(return 0);
}
static void
cmd_AddParm(ts, "-f", CMD_FLAG, CMD_OPTIONAL, "Alias for -force");
err = cmd_Dispatch(argc, argv);
Exit(err);
- return 0; /* not reached */
+ AFS_UNREACHED(return 0);
}
}
ReleaseReadLock(&SALVSYNC_handler_lock); /* just in case */
osi_Panic("Failed to find handler\n");
- return -1; /* satisfy compiler */
+ AFS_UNREACHED(return -1);
}
static int
return i;
}
osi_Panic("Failed to find handler\n");
- return -1; /* satisfy compiler */
+ AFS_UNREACHED(return -1);
}
static int
if (!tdir) {
Abort("volser: could not open conf files in %s\n",
configDir);
- VS_EXIT(1);
+ AFS_UNREACHED(VS_EXIT(1));
}
/* initialize audit user check */
osi_audit(VS_FinishEvent, (-1), AUD_END);
Abort("StartServer returned?");
- return 0; /* not reached */
+ AFS_UNREACHED(return 0);
}