From b48b8f60ecfcc7d8eae2573e23a1dff0e1f12e78 Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Thu, 29 May 2008 07:52:44 +0000 Subject: [PATCH] panic() is now a noreturn, so change this code that was using the panic() return code git-svn-id: svn+ssh://newos.org/var/svn/newos/newos@1254 c25cc9d1-44fa-0310-b259-ad778cb1d433 --- kernel/addons/fs/nfs/nfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/addons/fs/nfs/nfs.c b/kernel/addons/fs/nfs/nfs.c index 4c2a56b..42da080 100644 --- a/kernel/addons/fs/nfs/nfs.c +++ b/kernel/addons/fs/nfs/nfs.c @@ -1094,7 +1094,7 @@ static int _nfs_create(nfs_fs *nfs, nfs_vnode *dir, const char *name, stream_typ proc = NFSPROC_MKDIR; break; default: - return panic("_nfs_create asked to make file type it doesn't understand\n"); + panic("_nfs_create asked to make file type it doesn't understand\n"); } err = rpc_call(&nfs->rpc, NFSPROG, NFSVERS, proc, argbuf, arglen, resbuf, sizeof(resbuf)); @@ -1203,7 +1203,7 @@ static int _nfs_unlink(nfs_fs *nfs, nfs_vnode *dir, const char *name, stream_typ proc = NFSPROC_RMDIR; break; default: - return panic("_nfs_unlink asked to remove file type it doesn't understand\n"); + panic("_nfs_unlink asked to remove file type it doesn't understand\n"); } err = rpc_call(&nfs->rpc, NFSPROG, NFSVERS, proc, argbuf, arglen, &res, sizeof(res)); -- 2.11.4.GIT