File fix-return-type-errors.patch of Package deepin-system-monitor

diff -Nur deepin-system-monitor-5.8.20/3rdparty/strutils.c deepin-system-monitor-5.8.20-new/3rdparty/strutils.c
--- deepin-system-monitor-5.8.20/3rdparty/strutils.c	2021-11-25 14:39:13.000000000 +0800
+++ deepin-system-monitor-5.8.20-new/3rdparty/strutils.c	2022-01-29 10:27:25.316549598 +0800
@@ -275,6 +275,7 @@
 	va_end(ap);
 
 	errx(STRTOXX_EXIT_CODE, "%s: '%s'", errmesg, arg);
+	return 0;
 }
 
 #ifndef HAVE_MEMPCPY
@@ -448,6 +449,7 @@
 		err(STRTOXX_EXIT_CODE, "%s: '%s'", errmesg, str);
 
 	errx(STRTOXX_EXIT_CODE, "%s: '%s'", errmesg, str);
+	return 0;
 }
 
 long double strtold_or_err(const char *str, const char *errmesg)
@@ -469,6 +471,7 @@
 		err(STRTOXX_EXIT_CODE, "%s: '%s'", errmesg, str);
 
 	errx(STRTOXX_EXIT_CODE, "%s: '%s'", errmesg, str);
+	return 0;
 }
 
 long strtol_or_err(const char *str, const char *errmesg)
@@ -490,6 +493,7 @@
 		err(STRTOXX_EXIT_CODE, "%s: '%s'", errmesg, str);
 
 	errx(STRTOXX_EXIT_CODE, "%s: '%s'", errmesg, str);
+	return 0;
 }
 
 unsigned long strtoul_or_err(const char *str, const char *errmesg)
@@ -511,6 +515,7 @@
 		err(STRTOXX_EXIT_CODE, "%s: '%s'", errmesg, str);
 
 	errx(STRTOXX_EXIT_CODE, "%s: '%s'", errmesg, str);
+	return 0;
 }
 
 uintmax_t strtosize_or_err(const char *str, const char *errmesg)
@@ -524,6 +529,7 @@
 		err(STRTOXX_EXIT_CODE, "%s: '%s'", errmesg, str);
 
 	errx(STRTOXX_EXIT_CODE, "%s: '%s'", errmesg, str);
+	return 0;
 }
 
 
openSUSE Build Service is sponsored by