Changeset 134 for branches/samba-3.0/source/lib
- Timestamp:
- May 23, 2008, 6:56:41 AM (17 years ago)
- Location:
- branches/samba-3.0/source/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/lib/smbldap.c
r44 r134 995 995 } 996 996 997 DEBUG(3, ("ldap_connect_system: succes ful connection to the LDAP server\n"));997 DEBUG(3, ("ldap_connect_system: successful connection to the LDAP server\n")); 998 998 DEBUGADD(10, ("ldap_connect_system: LDAP server %s support paged results\n", 999 999 ldap_state->paged_results ? "does" : "does not")); … … 1063 1063 ldap_state->last_ping = time(NULL); 1064 1064 ldap_state->pid = sys_getpid(); 1065 DEBUG(4,("The LDAP server is succes fully connected\n"));1065 DEBUG(4,("The LDAP server is successfully connected\n")); 1066 1066 1067 1067 return LDAP_SUCCESS; -
branches/samba-3.0/source/lib/util_str.c
r124 r134 2143 2143 * @param ip_list pointer to array of ip addresses which is 2144 2144 * allocated by this function and must be freed by caller 2145 * @return number of succes fully parsed addresses2145 * @return number of successfully parsed addresses 2146 2146 **/ 2147 2147 -
branches/samba-3.0/source/lib/util_tdb.c
r105 r134 848 848 switch (level) { 849 849 case TDB_DEBUG_FATAL: 850 debug _level = 0;850 debuglevel = 0; 851 851 break; 852 852 case TDB_DEBUG_ERROR: -
branches/samba-3.0/source/lib/xfile.c
r1 r134 49 49 int x_setvbuf(XFILE *f, char *buf, int mode, size_t size) 50 50 { 51 x_fflush(f);51 if (x_fflush(f) != 0) return -1; 52 52 if (f->bufused) return -1; 53 53 … … 152 152 153 153 /* make sure we flush any buffered data */ 154 x_fflush(f);154 (void)x_fflush(f); 155 155 156 156 ret = close(f->fd); … … 191 191 if (n == 0) { 192 192 /* it's full, flush it */ 193 x_fflush(f); 193 if (x_fflush(f) != 0) { 194 return -1; 195 } 194 196 continue; 195 197 } … … 206 208 for (i=(size*nmemb)-1; i>=0; i--) { 207 209 if (*(i+(const char *)p) == '\n') { 208 x_fflush(f); 210 if (x_fflush(f) != 0) { 211 return -1; 212 } 209 213 break; 210 214 } … … 255 259 if (f->flags & X_FLAG_ERROR) return -1; 256 260 261 if (f->bufused == 0 || !f->buf) return 0; 262 257 263 if ((f->open_flags & O_ACCMODE) != O_WRONLY) { 258 264 errno = EINVAL; 259 265 return -1; 260 266 } 261 262 if (f->bufused == 0 || !f->buf) return 0;263 267 264 268 ret = write(f->fd, f->buf, f->bufused);
Note:
See TracChangeset
for help on using the changeset viewer.