search for: strcmp

Displaying 20 results from an estimated 1976 matches for "strcmp".

2006 May 10
1
Floating Point Exception
I have a Fedora Core server running: Fedora Core release 4 (Stentz) kernel version: 2.6.15-1.1833_FC4smp ( I have also tried kernel version: 2.6.16-1.2108_FC4smp) I compiled the ocfs2 and ocfs2-tools using the following steps: # MODULES: tar zxvpf ocfs2-1.2.1.tar.gz cd ocfs2-1.2.1 ./configure make make install # TOOLS: tar zxf ocfs2-tools-1.2.1.tar.gz cd ocfs2-tools-1.2.1 ./configure
2018 Aug 20
6
Call for testing: OpenSSH 7.8
...================================= RCS file: /cvs/src/usr.bin/ssh/utf8.c,v retrieving revision 1.7 diff -u -p -r1.7 utf8.c --- utf8.c 31 May 2017 09:15:42 -0000 1.7 +++ utf8.c 20 Aug 2018 17:11:33 -0000 @@ -51,9 +51,18 @@ dangerous_locale(void) { char *loc; loc = nl_langinfo(CODESET); - return strcmp(loc, "US-ASCII") != 0 && strcmp(loc, "UTF-8") != 0 && - strcmp(loc, "ANSI_X3.4-1968") != 0 && strcmp(loc, "646") != 0 && - strcmp(loc, "") != 0; + return strcmp(loc, "UTF-8") != 0 && + st...
2009 Nov 09
1
use STREQ(a,b), not strcmp(a,b) == 0
The series below makes changes like these mechanically, one class of change per change-set: strcmp(...) == 0 to STREQ(...) strcmp(...) != 0 to STRNEQ(...) strncmp(...) == 0 to STREQLEN(...) strncmp(...) != 0 to STRNEQLEN(...) strcasecmp(...) == 0 to STRCASEEQ(...) strcasecmp(...) != 0 to STRCASENEQ(...) strncasecmp(...) == 0 to STRCASEEQLEN(...) strncase...
2018 Jun 28
1
[nbdkit PATCH] main: More idiomatic use of getopt_long
...no_argument, NULL, 'v' }, + { "version", no_argument, NULL, 'V' }, { NULL }, }; @@ -233,25 +244,27 @@ main (int argc, char *argv[]) break; switch (c) { - case 0: /* options which are long only */ - if (strcmp (long_options[option_index].name, "dump-config") == 0) { - dump_config (); - exit (EXIT_SUCCESS); - } - else if (strcmp (long_options[option_index].name, "dump-plugin") == 0) { - dump_plugin = 1; - } - else if (strcmp (long_options[option...
2008 May 20
6
Dtrace queries - predicates & func arg tracing
[1] Predicates in one-liners I would like to list the probe modules in my executable and then dynamically create a dscript to trace execution of those modules alone (by excluding the 3rd party and system libraries). I tried the below script without success. The conditional given in the predicate is not taking effect. Why is this so ? $ dtrace -ln ''pid$target:::
2020 Feb 06
3
Call for testing: OpenSSH 8.2
On 2020-02-06 at 13:28 +1100, Darren Tucker wrote: > Like this. > --- a/sshd_config.5 > +++ b/sshd_config.5 The ssh_config.5 also has a copy of this and presumably needs the same change, unless I've misunderstood. -Phil
2007 Aug 16
0
[LLVMdev] Strange error of llvm-ld
Holger, I have just committed a patch to cause the linker to properly propagate error messages from the LinkModules method up to higher levels of the linker. With this change it should tell you with more detail what is going on (why it couldn't link the file in). Please update, rebuild and try again. If you think the error message is wrong after that, please file a bug for this. To get
2007 Aug 16
2
[LLVMdev] Strange error of llvm-ld
> I think I have experienced this when more than one module > contains definitions for the same values. ie. it should only > be a declaration in one of them. Hmm, when I compile and link this with plain gcc, it everything works. Anyway, llvm-ld should probably not just say "Cannot link file 'blah'", but why it cannot link it. I compiled llvm in with --enable-debug.
2005 Aug 26
0
Installing Ices on OSX 10.4.2
...e.c:129: warning: pointer targets in passing argument 1 of 'xmlStrdup' differ in signedness cfgparse.c:129: warning: pointer targets in assignment differ in signedness cfgparse.c: In function '_parse_resample': cfgparse.c:156: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness cfgparse.c:158: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness cfgparse.c: In function '_parse_encode': cfgparse.c:170: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness cfgparse.c:172...
2019 Apr 01
0
[PATCH nbdkit] error: Fix all error-*-file parameters.
.../filters/error/error.c b/filters/error/error.c index bf7b442..0f84f12 100644 --- a/filters/error/error.c +++ b/filters/error/error.c @@ -213,27 +213,27 @@ error_config (nbdkit_next_config *next, void *nxdata, extents_settings.file = nbdkit_absolute_path (value); return 0; } - else if (strcmp (key, "error-pread-rate") == 0) { + else if (strcmp (key, "error-pread-file") == 0) { free (pread_settings.file); pread_settings.file = nbdkit_absolute_path (value); return 0; } - else if (strcmp (key, "error-pwrite-rate") == 0) { + else if (strcmp...
2013 Nov 14
3
[PATCH] btrfs-progs: mkfs: extend -O syntax to disable features
...nged, 5 insertions(+), 1 deletion(-) diff --git a/mkfs.c b/mkfs.c index cd0af9ef8b4f..f825e1b6bc2d 100644 --- a/mkfs.c +++ b/mkfs.c @@ -1168,7 +1168,11 @@ static int parse_one_fs_feature(const char *name, u64 *flags) int found = 0; for (i = 0; i < ARRAY_SIZE(mkfs_features); i++) { - if (!strcmp(mkfs_features[i].name, name)) { + if (name[0] == ''^'' && + !strcmp(mkfs_features[i].name, name + 1)) { + *flags &= ~ mkfs_features[i].flag; + found = 1; + } else if (!strcmp(mkfs_features[i].name, name)) { *flags |= mkfs_features[i].flag; found = 1; }...
2016 Nov 02
3
[PATCH] gr: fallback to legacy paths during firmware lookup
...amp;fw); - if (ret) { + /* firmware found, success! */ + if (!ret) { + fuc->size = fw->size; + fuc->data = kmemdup(fw->data, fuc->size, GFP_KERNEL); + nvkm_firmware_put(fw); + return (fuc->data != NULL) ? 0 : -ENOMEM; + } + + /* see if this firmware has a legacy path */ + if (!strcmp(fwname, "fecs_inst")) + legacy_fwname = "fuc409c"; + else if (!strcmp(fwname, "fecs_data")) + legacy_fwname = "fuc409d"; + else if (!strcmp(fwname, "gpccs_inst")) + legacy_fwname = "fuc41ac"; + else if (!strcmp(fwname, "gpccs_data&...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...diff --git a/brctl/brctl_cmd.c b/brctl/brctl_cmd.c index c93dd55..77eaf1e 100644 --- a/brctl/brctl_cmd.c +++ b/brctl/brctl_cmd.c @@ -280,17 +280,26 @@ static int br_cmd_setportprio(int argc, char *const* argv) return err != 0; } +static int br_parse_param(const char *param, int *res) +{ + if (!strcmp(param, "on") || !strcmp(param, "yes") + || !strcmp(param, "1")) + *res = 1; + else if (!strcmp(param, "off") || !strcmp(param, "no") + || !strcmp(param, "0")) + *res = 0; + else { + return EINVAL; + } + return 0; +} + static int...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...diff --git a/brctl/brctl_cmd.c b/brctl/brctl_cmd.c index c93dd55..77eaf1e 100644 --- a/brctl/brctl_cmd.c +++ b/brctl/brctl_cmd.c @@ -280,17 +280,26 @@ static int br_cmd_setportprio(int argc, char *const* argv) return err != 0; } +static int br_parse_param(const char *param, int *res) +{ + if (!strcmp(param, "on") || !strcmp(param, "yes") + || !strcmp(param, "1")) + *res = 1; + else if (!strcmp(param, "off") || !strcmp(param, "no") + || !strcmp(param, "0")) + *res = 0; + else { + return EINVAL; + } + return 0; +} + static int...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...diff --git a/brctl/brctl_cmd.c b/brctl/brctl_cmd.c index c93dd55..77eaf1e 100644 --- a/brctl/brctl_cmd.c +++ b/brctl/brctl_cmd.c @@ -280,17 +280,26 @@ static int br_cmd_setportprio(int argc, char *const* argv) return err != 0; } +static int br_parse_param(const char *param, int *res) +{ + if (!strcmp(param, "on") || !strcmp(param, "yes") + || !strcmp(param, "1")) + *res = 1; + else if (!strcmp(param, "off") || !strcmp(param, "no") + || !strcmp(param, "0")) + *res = 0; + else { + return EINVAL; + } + return 0; +} + static int...
2017 Mar 31
2
testsuite error on Solaris 2.6 [Re: Announce: OpenSSH 7.5 released]
On 27/03/17 17:06, Tom G. Christensen wrote: > On 20/03/17 14:31, Damien Miller wrote: >> OpenSSH 7.5 has just been released. It will be available from the >> mirrors listed at http://www.openssh.com/ shortly. >> > > I'm seeing an error in the testsuite on Solaris 2.6: > test_utf8: ........................ > regress/unittests/utf8/tests.c:48 test #25
2013 Sep 05
12
[PATCH 0/5] Memory leaks amended
Memory leaks found by the tool--valgrind along with static reviewing. Based on Daivd''s branch ''integration-20130903''. Gui Hecheng (5): btrfs-progs:free local variable buf upon unsuccessful returns btrfs-progs:local variable memory freed btrfs-progs: missing tree-freeing statements added btrfs-progs:free the local list pending_list in btrfs_scan_one_dir
2010 Apr 09
2
[PATCH] gfxboot: support MENU LABEL statement
...); @@ -234,7 +234,7 @@ int main(int argc, char **argv) } // does not return if it succeeds - boot(); + boot(menu_index); } if(argc > 2) show_message(argv[2]); @@ -321,19 +321,19 @@ int read_config_file(void) if(*t) *t++ = 0; t = skip_spaces(t); - if(!strcmp(s, "timeout")) { + if(!strcasecmp(s, "timeout")) { timeout = atoi(t); continue; } - if(!strcmp(s, "default")) { + if(!strcasecmp(s, "default")) { menu_default->label = strdup(t); u = strlen(t); if(u &...
2001 Feb 06
4
argv[0] => host feature considered harmful
OpenSSH still has this feature, SSH-1.2.27 no longer has it. Admittedly it can be useful sometimes, even though I'd prefer this to be done using a trivial shell wrapper, which would be the UNIX way of doing things. Not being able to call OpenSSH's ssh by another name (say ``ssh1'') can get in the way when having to maintain two versions of ssh in parallel because the ``ssh ->
2010 Jun 29
1
NFS(4) IMAP Quota
...default: passdb: driver: pam args: * userdb: driver: passwd plugin: quota: fs:user:noenforcing -- END The diff (-Naur): --- quota-fs.c 2010-06-19 00:12:44.000000000 +0200 +++ quota-fs.c 2010-06-29 15:44:45.033517162 +0200 @@ -164,7 +164,7 @@ mount->fd = -1; #endif - if (strcmp(mount->type, "nfs") == 0) { + if (strcmp(mount->type, "nfs") == 0 || strcmp(mount->type, "nfs4") == 0) { if (strchr(mount->device_path, ':') == NULL) { i_error("quota-fs: %s is not a valid NFS device path", mount->device_pat...