summaryrefslogtreecommitdiff
path: root/devices.h
diff options
context:
space:
mode:
authorHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-12-23 15:54:40 +0100
committerHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-12-23 15:54:40 +0100
commitc91ff9668142a9d0aac0bc364ccaf40611fa9c72 (patch)
tree980304707df6d5e7820208db017dbfb9ccdf0384 /devices.h
parent20746581ba3e8c6cda0851e47b27528401168247 (diff)
downloadMAC-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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/devices.h b/devices.h
index ab83821..d917401 100644
--- a/devices.h
+++ b/devices.h
@@ -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);