Fix nullable

This commit is contained in:
2019-12-08 11:43:12 +01:00
parent b469c4ed6e
commit 902fdd9b25
6 changed files with 51 additions and 46 deletions
@@ -1,3 +1,5 @@
#nullable enable
using System;
using System.Runtime.InteropServices;
@@ -16,7 +16,7 @@ namespace Unosquare.RaspberryIO.Abstractions.Native {
/// </summary>
/// <param name="error">The error.</param>
/// <returns>The error string.</returns>
public static String? Strerror(Int32 error) {
public static String Strerror(Int32 error) {
if(Type.GetType("Mono.Runtime") == null) {
return Marshal.PtrToStringAnsi(StrError(error));
}