GramThanos / WakeOnLAN

A simple C program that sends a magic packet
MIT License
100 stars 35 forks source link

Fix warning + Makefile targets #6

Closed lucapalano closed 2 years ago

lucapalano commented 2 years ago

This MR fixes this warning I encountered when compiling:

WakeOnLAN.c:114:69: warning: format specifies type 'unsigned char' but the argument has type 'unsigned int' [-Wformat]
        printf("Packet will be sent to %02hhx:%02x:%02x:%02x:%02x:%02x\n", mac[0], mac[1], mac[2], mac[3], mac[4...
                                       ~~~~~~                              ^~~~~~
                                       %02x
1 warning generated.

Other minor changes are included.

Best regards