mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
Fix the following -Werror warning from clang 10.0.0 in rbootd:
libexec/rbootd/rmpproto.c:335:49: error: multiple unsequenced modifications to 'filename' [-Werror,-Wunsequenced] filename = (filename = strrchr(filepath,'/'))? ++filename: filepath; ~ ^ MFC after: 3 days
This commit is contained in:
parent
a92579cfb9
commit
fe1b3370c1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/clang1000-import/; revision=357222
|
@ -332,7 +332,8 @@ SendBootRepl(struct rmp_packet *req, RMPCONN *rconn, char *filelist[])
|
|||
* stripped file name and spoof the client into thinking that it
|
||||
* really got what it wanted.
|
||||
*/
|
||||
filename = (filename = strrchr(filepath,'/'))? ++filename: filepath;
|
||||
filename = strrchr(filepath,'/');
|
||||
filename = filename? filename + 1: filepath;
|
||||
|
||||
/*
|
||||
* Check that this is a valid boot file name.
|
||||
|
|
Loading…
Reference in a new issue