Print this page
10703 smatch unreachable code checking needs reworking
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
*** 11,20 ****
--- 11,24 ----
/*
* Copyright (c) 2018 by Chelsio Communications, Inc.
*/
+ /*
+ * Copyright 2019 Joyent, Inc.
+ */
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stropts.h>
#include <sys/types.h>
*** 83,93 ****
"\tdevlog show device log\n"
"\tloadfw <FW image> Flash the FW image\n");
exit(fp == stderr ? 1 : 0);
}
! static void
err(int code, const char *fmt, ...)
{
va_list ap;
int e = errno;
--- 87,97 ----
"\tdevlog show device log\n"
"\tloadfw <FW image> Flash the FW image\n");
exit(fp == stderr ? 1 : 0);
}
! __NORETURN static void
err(int code, const char *fmt, ...)
{
va_list ap;
int e = errno;