Deleted Added
full compact
152,153c152,153
< char *pString ;
< int iLength ;
---
> const char * pString ;
> int iLength ;
630c630
< if ( iscntrl( pp->a_lastcode[i] & 0x7F ) ) {
---
> if ( iscntrl( (u_char)(pp->a_lastcode[i] & 0x7F) ) ) {
705c705
< if ( ! iscntrl( up->sRawBuf[i] ) ) {
---
> if ( ! iscntrl( (u_char)up->sRawBuf[i] ) ) {
1157,1159c1157,1160
< char *pBuf, sLog [ 100 ] ;
< int iLen ;
< int rc ;
---
> char * pBuf ;
> char sLog [ 100 ] ;
> int iLen ;
> int rc ;
1161,1162c1162,1163
< const char *pCmd ;
< int iCmdLen ;
---
> const char * pCmd ;
> int iCmdLen ;
1362,1363c1363,1364
< const char *pCmd ;
< int iCmdLen ;
---
> const char * pCmd ;
> int iCmdLen ;
2013,2015c2014,2017
< char *pBuf, sLog [ 100 ] ;
< int iLen ;
< int rc ;
---
> char * pBuf ;
> char sLog [ 100 ] ;
> int iLen ;
> int rc ;
2017,2018c2019,2020
< const char *pCmd ;
< int iCmdLen ;
---
> const char * pCmd ;
> int iCmdLen ;
2242,2243c2244,2245
< const char *pCmd ;
< int iCmdLen ;
---
> const char * pCmd ;
> int iCmdLen ;
2579c2581
< static int ( *pTeljjyHandler [ ] [ 5 ] ) ( ) =
---
> static int ( *pTeljjyHandler [ ] [ 5 ] ) ( struct peer *, struct refclockproc *, struct jjyunit *) =
2718c2720
< if ( isdigit( *(sys_phone[0]+i) ) ) {
---
> if ( isdigit( (u_char)sys_phone[0][i] ) ) {
2720c2722
< sFirstThreeDigits[iFirstThreeDigitsCount++] = *(sys_phone[0]+i) ;
---
> sFirstThreeDigits[iFirstThreeDigitsCount++] = sys_phone[0][i] ;
2723c2725
< } else if ( *(sys_phone[0]+i) == ',' ) {
---
> } else if ( sys_phone[0][i] == ',' ) {
2732c2734
< } else if ( *(sys_phone[0]+i) != '-' ) {
---
> } else if ( sys_phone[0][i] != '-' ) {
3216,3217c3218,3219
< char *pCmd ;
< int iCmdLen ;
---
> const char * pCmd ;
> int iCmdLen ;
3293,3294c3295,3296
< const char *pCmd ;
< int i, iLen, iNextClockState ;
---
> const char * pCmd ;
> int i, iLen, iNextClockState ;
3530c3532
< const char *pCmd ;
---
> const char * pCmd ;
3668c3670
< static int ( *pModemHandler [ ] [ 5 ] ) ( ) =
---
> static int ( *pModemHandler [ ] [ 5 ] ) ( struct peer *, struct refclockproc *, struct jjyunit * ) =
3996,3999c3998,4002
< char *pCmd, cBuf [ 46 ] ;
< int iCmdLen ;
< int iErrorCorrection, iSpeakerSwitch, iSpeakerVolume ;
< int iNextModemState = STAY_MODEM_STATE ;
---
> const char * pCmd ;
> char cBuf [ 46 ] ;
> int iCmdLen ;
> int iErrorCorrection, iSpeakerSwitch, iSpeakerVolume ;
> int iNextModemState = STAY_MODEM_STATE ;
4034c4037
< snprintf( pCmd, sizeof(cBuf), "ATM%dL%d\r\n", iSpeakerSwitch, iSpeakerVolume ) ;
---
> snprintf( cBuf, sizeof(cBuf), "ATM%dL%d\r\n", iSpeakerSwitch, iSpeakerVolume ) ;
4063c4066
< snprintf( pCmd, sizeof(cBuf), "AT\\N%d\r\n", iErrorCorrection ) ;
---
> snprintf( cBuf, sizeof(cBuf), "AT\\N%d\r\n", iErrorCorrection ) ;
4254,4255c4257,4258
< char *pCmd ;
< int iCmdLen ;
---
> const char * pCmd ;
> int iCmdLen ;
4320,4321c4323,4324
< char *pCmd ;
< int iCmdLen ;
---
> const char * pCmd ;
> int iCmdLen ;
4352,4354c4355,4357
< char sLog [ 100 ] ;
< char *pMark ;
< int iMarkLen, iDataLen ;
---
> char sLog [ 100 ] ;
> const char * pMark ;
> int iMarkLen, iDataLen ;