diff options
Diffstat (limited to 'bjnp-utils.c')
-rw-r--r-- | bjnp-utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bjnp-utils.c b/bjnp-utils.c index ebd703d..821113b 100644 --- a/bjnp-utils.c +++ b/bjnp-utils.c @@ -1,7 +1,7 @@ /* * utility functions * bjnp backend for the Common UNIX Printing System (CUPS). - * Copyright 2008-2014 by Louis Lagendijk + * Copyright 2008-2020 by Louis Lagendijk * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -280,8 +280,8 @@ get_printer_host(const http_addr_t printer_addr, char *name, int *port, /* do reverse name lookup, if hostname cannot be found, return IP-addr */ - if ((error = getnameinfo(&(printer_addr.addr) , sa_size(printer_addr), - name, BJNP_HOST_MAX , NULL, 0, NI_NAMEREQD)) + if ((error = getnameinfo(&(printer_addr.addr), sa_size(printer_addr), + name, BJNP_HOST_MAX, NULL, 0, NI_NAMEREQD)) != 0) { bjnp_debug(LOG_DEBUG, "Name for %s not found : %s\n", ip_address, gai_strerror(error)); |