Skip to content

Instantly share code, notes, and snippets.

View aprieger-llnw's full-sized avatar

aprieger-llnw

View GitHub Profile
diff --git a/sys/boot/i386/gptboot/gptboot.c b/sys/boot/i386/gptboot/gptboot.c
index dd06f0c..64d9e3b 100644
--- a/sys/boot/i386/gptboot/gptboot.c
+++ b/sys/boot/i386/gptboot/gptboot.c
@@ -254,7 +254,7 @@ gptinit(void)
#ifdef LOADER_GELI_SUPPORT
if (geli_taste(vdev_read, &dsk, (gpttable[curent].ent_lba_end -
gpttable[curent].ent_lba_start)) == 0) {
- if (geli_havekey(&dsk) != 0 && geli_passphrase(&gelipw,
+ if (geli_havekey(&dsk) != 0 && geli_passphrase((char *)&gelipw,
diff --git a/contrib/wpa/wpa_supplicant/wpa_cli.c b/contrib/wpa/wpa_supplicant/wpa_cli.c
index 7ddae3d..869e126 100644
--- a/contrib/wpa/wpa_supplicant/wpa_cli.c
+++ b/contrib/wpa/wpa_supplicant/wpa_cli.c
@@ -4084,7 +4084,7 @@ static void try_connection(void *eloop_ctx, void *timeout_ctx)
if (ctrl_ifname == NULL)
ctrl_ifname = wpa_cli_get_default_ifname();
- if (!wpa_cli_open_connection(ctrl_ifname, 1) == 0) {
+ if ((!wpa_cli_open_connection(ctrl_ifname, 1)) == 0) {
/usr/home/aprieger/repos/freebsd-master/freebsd/cddl/contrib/opensolaris/cmd/zfs/
zfs_main.c:2196:49: warning: format specifies type 'unsigned long' but the argume
nt has type 'unsigned long long' [-Wformat]
"ZFS filesystem version %"PRIu64".\n\n"), ZPL_VERSION);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
/usr/home/aprieger/repos/freebsd-master/freebsd/sys/cddl/contrib/opensolaris/uts/
common/sys/fs/zfs.h:483:23: note: expanded from macro 'ZPL_VERSION'
#define ZPL_VERSION ZPL_VERSION_5
^~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd-master/freebsd/sys/cddl/contrib/opensolaris/uts/
/usr/home/aprieger/repos/freebsd-master/freebsd/contrib/mdocml/mandocdb.c:1281:9: warning: implicit declaration of function 'getline' is invalid in C99 [-Wimplicit-function-declaration]
while (getline(&line, &linesz, stream) != -1) {
^
1 warning generated.
/usr/home/aprieger/repos/freebsd-master/freebsd/contrib/mdocml/main.c:915:16: warning: implicit declaration of function 'getline' is invalid in C99 [-Wimplicit-function-declaration]
while ((len = getline(&line, &linesz, stream)) != -1) {
^
1 warning generated.
/usr/home/aprieger/repos/freebsd-master/freebsd/contrib/mdocml/manpath.c:182:20: warning: implicit declaration of function 'getline' is invalid in C99 [-Wimplicit-function-declaration]
while ((linelen = getline(&line, &linesz, stream)) != -1) {
/usr/home/aprieger/repos/freebsd-master/freebsd/sys/boot/geli/geliboot_crypto.c:85:28: warning: incompatible pointer types passing 'struct aes_xts_ctx *' to parameter of type 'caddr_t' (aka 'char *') [-Wincompatible-pointer-types]
enc_xform_aes_xts.reinit(ctxp, iv);
^~~~
/usr/home/aprieger/repos/freebsd-master/freebsd/sys/boot/geli/geliboot_crypto.c:90:31: warning: incompatible pointer types passing 'struct aes_xts_ctx *' to parameter of type 'caddr_t' (aka 'char *') [-Wincompatible-pointer-types]
enc_xform_aes_xts.decrypt(ctxp, data + i);
^~~~
/usr/home/aprieger/repos/freebsd-master/freebsd/sys/boot/geli/geliboot_crypto.c:95:31: warning: incompatible pointer types passing 'struct aes_xts_ctx *' to parameter of type 'caddr_t' (aka 'char *') [-Wincompatible-pointer-types]
enc_xform_aes_xts.encrypt(ctxp, data + i);
/usr/home/aprieger/repos/freebsd-master/freebsd/crypto/heimdal/kdc/digest.c:608:10: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value]
if (labs((kdc_time & 0xffffffff) - t) > context->max_skew) {
^
/usr/home/aprieger/repos/freebsd-master/freebsd/crypto/heimdal/kdc/digest.c:608:10: note: remove the call to 'labs' since unsigned values cannot be negative
if (labs((kdc_time & 0xffffffff) - t) > context->max_skew) {
^~~~
1 warning generated.
/usr/home/aprieger/repos/freebsd-master/freebsd/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c:1464:8: warning: format specifies type 'long' but the argument has type 'long long' [-Wformat]
(loss + 30) / 60);
/usr/home/aprieger/repos/freebsd_master/freebsd/contrib/llvm/tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp:2198:23: warning: format specifies type 'unsigned long' but the argument has type 'rep' (aka 'long long') [-Wformat]
duration_cast<nanoseconds>(total_time).count(),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/contrib/llvm/tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp:2199:23: warning: format specifies type 'unsigned long' but the argument has type 'rep' (aka 'long long') [-Wformat]
duration_cast<nanoseconds>(standard_deviation).count());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/contrib/llvm/tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp:2256:23: warning: format specifies type 'unsigned long' but the argument has t
yacc: 15 shift/reduce conflicts, 15 reduce/reduce conflicts.
yacc: 4 rules never reduced
yacc: 5 shift/reduce conflicts.
/usr/home/aprieger/repos/freebsd_master/freebsd/contrib/gdb/gdb/arch-utils.c:48:53: warning: passing 'bfd_byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
DEPRECATED_EXTRACT_RETURN_VALUE (type, registers, buf); /* OK */
^~~
/usr/home/aprieger/repos/freebsd_master/freebsd/contrib/gdb/gdb/gdbarch.h:1441:136: note: expanded from macro 'DEPRECATED_EXTRACT_RETURN_VALUE'
...(current_gdbarch, type, regbuf, valbuf))
^~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/contrib/gdb/gdb/gdbarch.h:1435:118: note: passing argument to parameter 'valbuf' here
In file included from /usr/home/aprieger/repos/freebsd_master/freebsd/sys/boot/geli/geliboot_crypto.c:34:
/usr/home/aprieger/repos/freebsd_master/freebsd/sys/boot/geli/geliboot_internal.h:54:9: warning:
'_STAND' macro redefined [-Wmacro-redefined]
#define _STAND
^
<command line>:3:9: note: previous definition is here
#define _STAND 1
^
/usr/home/aprieger/repos/freebsd_master/freebsd/sys/boot/geli/geliboot_crypto.c:85:28: warning:
incompatible pointer types passing 'struct aes_xts_ctx *' to parameter of
/usr/home/aprieger/repos/freebsd_master/freebsd/sys/netinet/libalias/alias.c:1236:8: warning: cast from 'char *' to 'struct ip *' increases required alignment from 1 to 2 [-Wcast-align]
pip = (struct ip *)ptr;
^~~~~~~~~~~~~~~~
`krb5_get_error_message()`/usr/home/aprieger/repos/freebsd_master/freebsd/sys/netinet/libalias/alias.c:1255:8: warning: cast from 'char *' to 'struct ip *' increases required alignment from 1 to 2 [-Wcast-align]
pip = (struct ip *)ptr;
^~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/sys/netinet/libalias/alias.c:1281:8: warning: cast from 'char *' to 'struct ip *' increases required alignment from 1 to 2 [-Wcast-align]
pip = (struct ip *)ptr;
^~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/sys/netinet/libalias/alias.c:1282:9: warning: cast from 'char *' to 'struct ip *' increases required alignment from 1 to 2 [-Wcast-align]