From b1338b390059f9f7019edc1080833f5002e948d8 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sun, 6 Jan 2013 17:15:23 +0100 Subject: [PATCH] Whitespace and exclamation mark fixes --- bin/uniconv/uniconv.c | 8 ++++---- etc/afpd/auth.c | 2 +- etc/afpd/status.c | 4 ++-- etc/afpd/volume.c | 2 +- libatalk/cnid/cdb/cnid_cdb_close.c | 2 +- libatalk/cnid/cnid.c | 4 ++-- libatalk/cnid/dbd/cnid_dbd.c | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bin/uniconv/uniconv.c b/bin/uniconv/uniconv.c index 93439cef..b9a2fc45 100644 --- a/bin/uniconv/uniconv.c +++ b/bin/uniconv/uniconv.c @@ -184,8 +184,8 @@ static char *convert_name(char *name, struct stat *st, cnid_t cur_did) outlen = convert_charset(ch_to, ch_to, ch_mac, (char *)p, strlen((char *)p), (char *)q, sizeof(buffer) -2, &flags); if ((size_t)-1 == outlen) { /* it's not UTF8... */ - fprintf(stderr, "ERROR: conversion from '%s' to '%s' for '%s' in DID %u failed!!!\n", - from_charset, to_charset, name, ntohl(cur_did)); + fprintf(stderr, "ERROR: conversion from '%s' to '%s' for '%s' in DID %u failed!\n", + from_charset, to_charset, name, ntohl(cur_did)); return name; } @@ -441,11 +441,11 @@ static void help (void) fprintf (stdout, "\t-V\tPrint version and exit\n"); fprintf (stdout, "\t-h\tThis help screen\n\n"); fprintf (stdout, "WARNING:\n"); - fprintf (stdout, " Setting the wrong options might render your data unusable!!!\n"); + fprintf (stdout, " Setting the wrong options might render your data unusable!\n"); fprintf (stdout, " Make sure you know what you are doing. Always backup your data first.\n\n"); fprintf (stdout, " It is *strongly* recommended to do a `dry run' first and to check the\n"); fprintf (stdout, " output for conversion errors.\n"); - fprintf (stdout, " USE AT YOUR OWN RISK!!!\n\n"); + fprintf (stdout, " USE AT YOUR OWN RISK!\n\n"); } diff --git a/etc/afpd/auth.c b/etc/afpd/auth.c index dc4dd8bc..3c2db203 100644 --- a/etc/afpd/auth.c +++ b/etc/afpd/auth.c @@ -977,7 +977,7 @@ int afp_getuserinfo(AFPObj *obj _U_, char *ibuf, size_t ibuflen _U_, char *rbuf, atalk_uuid_t uuid; ret = getuuidfromname( obj->username, UUID_USER, uuid); if (ret != 0) { - LOG(log_info, logtype_afpd, "afp_getuserinfo: error getting UUID !"); + LOG(log_info, logtype_afpd, "afp_getuserinfo: error getting UUID!"); return AFPERR_NOITEM; } LOG(log_debug, logtype_afpd, "afp_getuserinfo: got UUID: %s", uuid_bin2string(uuid)); diff --git a/etc/afpd/status.c b/etc/afpd/status.c index edf74466..d95a7f3b 100644 --- a/etc/afpd/status.c +++ b/etc/afpd/status.c @@ -507,10 +507,10 @@ void set_signature(struct afp_options *options) { if (len == 0) { goto server_signature_auto; /* default */ } else if (len < 3) { - LOG(log_warning, logtype_afpd, "WARNING: signature string %s is very short !", options->signatureopt); + LOG(log_warning, logtype_afpd, "WARNING: signature string %s is very short!", options->signatureopt); goto server_signature_user; } else if (len > 16) { - LOG(log_warning, logtype_afpd, "WARNING: signature string %s is very long !", options->signatureopt); + LOG(log_warning, logtype_afpd, "WARNING: signature string %s is very long!", options->signatureopt); len = 16; goto server_signature_user; } else { diff --git a/etc/afpd/volume.c b/etc/afpd/volume.c index 8fca0006..eaedf53c 100644 --- a/etc/afpd/volume.c +++ b/etc/afpd/volume.c @@ -613,7 +613,7 @@ static int volume_codepage(AFPObj *obj, struct vol *volume) } if ( NULL == (charset = find_charset_functions(volume->v_volcodepage)) || charset->flags & CHARSET_ICONV ) { - LOG (log_warning, logtype_afpd, "WARNING: volume encoding %s is *not* supported by netatalk, expect problems !!!!", volume->v_volcodepage); + LOG (log_warning, logtype_afpd, "WARNING: volume encoding %s is *not* supported by netatalk, expect problems!", volume->v_volcodepage); } if (!volume->v_maccodepage) diff --git a/libatalk/cnid/cdb/cnid_cdb_close.c b/libatalk/cnid/cdb/cnid_cdb_close.c index c5aeceec..64ac2037 100644 --- a/libatalk/cnid/cdb/cnid_cdb_close.c +++ b/libatalk/cnid/cdb/cnid_cdb_close.c @@ -12,7 +12,7 @@ void cnid_cdb_close(struct _cnid_db *cdb) { CNID_private *db; if (!cdb) { - LOG(log_error, logtype_afpd, "cnid_close called with NULL argument !"); + LOG(log_error, logtype_afpd, "cnid_close called with NULL argument!"); return; } diff --git a/libatalk/cnid/cnid.c b/libatalk/cnid/cnid.c index fde4d70f..24de3588 100644 --- a/libatalk/cnid/cnid.c +++ b/libatalk/cnid/cnid.c @@ -48,7 +48,7 @@ void cnid_register(struct _cnid_module *module) /* Check if our module is already registered. */ list_for_each(ptr, &modules) if (0 == strcmp(list_entry(ptr, cnid_module, db_list)->name, module->name)) { - LOG(log_error, logtype_afpd, "Module with name [%s] is already registered !", module->name); + LOG(log_error, logtype_afpd, "Module with name [%s] is already registered!", module->name); return; } @@ -206,7 +206,7 @@ void cnid_close(struct _cnid_db *db) uint32_t flags; if (NULL == db) { - LOG(log_error, logtype_afpd, "Error: cnid_close called with NULL argument !"); + LOG(log_error, logtype_afpd, "Error: cnid_close called with NULL argument!"); return; } /* cnid_close free db */ diff --git a/libatalk/cnid/dbd/cnid_dbd.c b/libatalk/cnid/dbd/cnid_dbd.c index d4606400..09cf9ead 100644 --- a/libatalk/cnid/dbd/cnid_dbd.c +++ b/libatalk/cnid/dbd/cnid_dbd.c @@ -490,7 +490,7 @@ void cnid_dbd_close(struct _cnid_db *cdb) CNID_bdb_private *db; if (!cdb) { - LOG(log_error, logtype_cnid, "cnid_close called with NULL argument !"); + LOG(log_error, logtype_cnid, "cnid_close called with NULL argument!"); return; } -- 2.39.2