Ignore:
Timestamp:
May 20, 2009, 6:46:53 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/client/mount.cifs.c

    r141 r204  
    9595/* like strncpy but does not 0 fill the buffer and always null
    9696 *    terminates. bufsize is the size of the destination buffer */
    97 size_t strlcpy(char *d, const char *s, size_t bufsize)
     97static size_t strlcpy(char *d, const char *s, size_t bufsize)
    9898{
    9999        size_t len = strlen(s);
     
    109109 *    terminates. bufsize is the length of the buffer, which should
    110110 *       be one more than the maximum resulting string length */
    111 size_t strlcat(char *d, const char *s, size_t bufsize)
     111static size_t strlcat(char *d, const char *s, size_t bufsize)
    112112{
    113113        size_t len1 = strlen(d);
     
    197197        if(line_buf == NULL) {
    198198                fclose(fs);
    199                 return -ENOMEM;
     199                return ENOMEM;
    200200        }
    201201
     
    534534                                rc = open_cred_file(value);
    535535                                if(rc) {
    536                                         printf("error %d opening credential file %s\n",rc, value);
     536                                        printf("error %d (%s) opening credential file %s\n",
     537                                                rc, strerror(rc), value);
    537538                                        return 1;
    538539                                }
Note: See TracChangeset for help on using the changeset viewer.