Merge pull request #167 from yegorich/err-handling

libj1939: fix missing include and syntax
pull/172/head
Yegor Yefremov 2019-11-12 10:05:48 +01:00 committed by GitHub
commit bf30a4bc01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <err.h>
#include <inttypes.h>
#include <unistd.h>
@ -41,7 +41,7 @@ static inline void fetch_names(void)
if (!saved) {
saved = if_nameindex();
if (!saved)
err(1, errno, "if_nameindex()");
err(1, "if_nameindex()");
}
}