diff options
author | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2010-12-23 15:54:40 +0100 |
---|---|---|
committer | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2010-12-23 15:54:40 +0100 |
commit | c91ff9668142a9d0aac0bc364ccaf40611fa9c72 (patch) | |
tree | 980304707df6d5e7820208db017dbfb9ccdf0384 /devices.h | |
parent | 20746581ba3e8c6cda0851e47b27528401168247 (diff) | |
download | MAC-Telnet-c91ff9668142a9d0aac0bc364ccaf40611fa9c72.tar.gz MAC-Telnet-c91ff9668142a9d0aac0bc364ccaf40611fa9c72.zip |
Cleaned up code and added -Wall to the compiler flags. Moved packet types over to enums for more ease of use.
Diffstat (limited to 'devices.h')
-rw-r--r-- | devices.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -extern int getDeviceIndex(int sockfd, unsigned char *deviceName); -extern int getDeviceMAC(const int sockfd, const unsigned char *deviceName, unsigned char *mac); -extern int getDeviceIp(const int sockfd, const unsigned char *deviceName, struct sockaddr_in *ip); +extern int getDeviceIndex(int sockfd, char *deviceName); +extern int getDeviceMAC(const int sockfd, const char *deviceName, unsigned char *mac); +extern int getDeviceIp(const int sockfd, const char *deviceName, struct sockaddr_in *ip); int getIps(char *name, int nameLen, struct sockaddr_in *ip); |