Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more
Revision 66:ee7866efe5e6, committed 2013-11-12
- Comitter:
- nyatla
- Date:
- Tue Nov 12 03:45:21 2013 +0000
- Parent:
- 64:258e84040262
- Child:
- 67:0a24ad966876
- Commit message:
- delete #pragma in .cpp; fix some warning.
Changed in this revision
--- a/mbed/Net.cpp Wed Oct 23 04:49:08 2013 +0000
+++ b/mbed/Net.cpp Tue Nov 12 03:45:21 2013 +0000
@@ -1,4 +1,3 @@
-#pragma once
////////////////////////////////////////////////////////////////////////////////
// Net.h
////////////////////////////////////////////////////////////////////////////////
@@ -24,7 +23,7 @@
{
NyLPC_TcNetConfig_t* base_cfg=i_cfg.refBaseInstance();
//DHCP & autoIP request
- if(base_cfg->tcp_mode & NyLPC_TcNetConfig_IPV4_FLAG_MODE_MASK!=0){
+ if((base_cfg->tcp_mode & NyLPC_TcNetConfig_IPV4_FLAG_MODE_MASK)!=0){
for(;;){
//DHCP
if((base_cfg->tcp_mode & NyLPC_TcNetConfig_IPV4_FLAG_MODE_DHCP)!=0){
@@ -69,4 +68,4 @@
}
}
-}
\ No newline at end of file
+}
--- a/mbed/TcpSocket.cpp Wed Oct 23 04:49:08 2013 +0000 +++ b/mbed/TcpSocket.cpp Tue Nov 12 03:45:21 2013 +0000 @@ -1,4 +1,3 @@ -#pragma once //////////////////////////////////////////////////////////////////////////////// // TcpSocket.h ////////////////////////////////////////////////////////////////////////////////
--- a/mbed/UrlReader.cpp Wed Oct 23 04:49:08 2013 +0000
+++ b/mbed/UrlReader.cpp Tue Nov 12 03:45:21 2013 +0000
@@ -19,7 +19,7 @@
if(!NyLPC_cUrlReader_getPath(this->_ref_str,&p,(NyLPC_TInt32*)&l)){
return false;
}
- return ((l==strlen(path)) && (strncmp(p,path,l)==0));
+ return ((l==(int)strlen(path)) && (strncmp(p,path,l)==0));
}
/**
* @param i_ref_str
--- a/mbed/mod/ModBaseClass.cpp Wed Oct 23 04:49:08 2013 +0000 +++ b/mbed/mod/ModBaseClass.cpp Tue Nov 12 03:45:21 2013 +0000 @@ -1,5 +1,3 @@ -#pragma once - #include "ModBaseClass.h" #include "HttpdConnection.h" #include "NyLPC_cHttpdConnection_protected.h"
MiMic Webservice library