~ubuntu-branches/ubuntu/quantal/libfs/quantal-updates

« back to all changes in this revision

Viewing changes to src/FSServName.c

  • Committer: Package Import Robot
  • Author(s): Julien Cristau
  • Date: 2012-03-25 17:43:10 UTC
  • mfrom: (1.1.5) (2.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20120325174310-mfnal6atqin47bgk
Tags: 2:1.0.4-1
* New upstream release.
* Delete debian/xsfbs/, it's no longer used in this package.
* Don't require fakeroot for debian/rules clean.
* Remove David Nusinow and Brice Goglin from Uploaders.
* Run autoreconf at build time.
* Add build-arch and build-indep debian/rules targets.
* Build for multiarch.
* Install FSlib.txt in libfs-dev.
* Bump Standards-Version to 3.9.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 * Copyright 1990 Network Computing Devices;
4
4
 * Portions Copyright 1987 by Digital Equipment Corporation
5
5
 *
6
 
 * Permission to use, copy, modify, distribute, and sell this software 
7
 
 * and its documentation for any purpose is hereby granted without fee, 
8
 
 * provided that the above copyright notice appear in all copies and 
9
 
 * that both that copyright notice and this permission notice appear 
10
 
 * in supporting documentation, and that the names of Network Computing 
11
 
 * Devices or Digital not be used in advertising or publicity pertaining 
12
 
 * to distribution of the software without specific, written prior 
13
 
 * permission. Network Computing Devices or Digital make no representations 
14
 
 * about the suitability of this software for any purpose.  It is provided 
 
6
 * Permission to use, copy, modify, distribute, and sell this software
 
7
 * and its documentation for any purpose is hereby granted without fee,
 
8
 * provided that the above copyright notice appear in all copies and
 
9
 * that both that copyright notice and this permission notice appear
 
10
 * in supporting documentation, and that the names of Network Computing
 
11
 * Devices or Digital not be used in advertising or publicity pertaining
 
12
 * to distribution of the software without specific, written prior
 
13
 * permission. Network Computing Devices or Digital make no representations
 
14
 * about the suitability of this software for any purpose.  It is provided
15
15
 * "as is" without express or implied warranty.
16
16
 *
17
17
 * NETWORK COMPUTING DEVICES AND  DIGITAL DISCLAIM ALL WARRANTIES WITH
18
 
 * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF 
 
18
 * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
19
19
 * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES
20
 
 * OR DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES 
21
 
 * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
22
 
 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 
23
 
 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 
 
20
 * OR DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES
 
21
 * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 
22
 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 
23
 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
24
24
 * SOFTWARE.
25
25
 */
26
26
 
58
58
#include        <stdlib.h>
59
59
#include        "FSlib.h"
60
60
 
61
 
char       *
62
 
FSServerName(char *server)
 
61
const char *
 
62
FSServerName(const char *server)
63
63
{
64
 
    char       *s;
 
64
    const char *s;
65
65
 
66
66
    if (server != NULL && *server != '\0')
67
67
        return server;