Skip to content

Commit

Permalink
13390 clean up libdlpi warning gags
Browse files Browse the repository at this point in the history
Reviewed by: Yuri Pankov <ypankov@tintri.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Andy Fiddaman <andy@omnios.org>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
  • Loading branch information
rmustacc committed Feb 4, 2021
1 parent f915e6d commit 6d177d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion usr/src/lib/libdlpi/Makefile.com
Expand Up @@ -39,7 +39,6 @@ LDLIBS += -lc -linetutil -ldladm
SRCDIR = ../common

CFLAGS += $(CCVERBOSE)
CERRWARN += $(CNOWARN_UNINIT)
CPPFLAGS += -I$(SRCDIR) -D_REENTRANT

.KEEP_STATE:
Expand Down
3 changes: 1 addition & 2 deletions usr/src/lib/libdlpi/common/libdlpi.c
Expand Up @@ -1338,8 +1338,7 @@ i_dlpi_strgetmsg(dlpi_impl_t *dip, int msec, dlpi_msg_t *dlreplyp,
data.maxlen = (databuf == NULL) ? sizeof (bufd): *datalenp;

for (;;) {
if (!infinite)
start = NSEC2MSEC(gethrtime());
start = NSEC2MSEC(gethrtime());

switch (poll(&pfd, 1, msec)) {
default:
Expand Down

0 comments on commit 6d177d7

Please sign in to comment.