You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
19:32:59 [aboettger:~] % gcc -o hubpower hubpower.c
hubpower.c: In function ‘port_status’:
hubpower.c:85:13: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
portnum, strerror(errno));
^
hubpower.c: In function ‘main’:
hubpower.c:173:21: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
fname1, strerror(err1));
^
hubpower.c:175:21: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
fname2, strerror(errno));
^
hubpower.c:269:21: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
portnum, strerror(errno));
^
The text was updated successfully, but these errors were encountered:
19:32:59 [aboettger:~] % gcc -o hubpower hubpower.c
hubpower.c: In function ‘port_status’:
hubpower.c:85:13: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
portnum, strerror(errno));
^
hubpower.c: In function ‘main’:
hubpower.c:173:21: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
fname1, strerror(err1));
^
hubpower.c:175:21: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
fname2, strerror(errno));
^
hubpower.c:269:21: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
portnum, strerror(errno));
^
The text was updated successfully, but these errors were encountered: