Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. musicman (musicman@nu.federati.net)'s status on Tuesday, 05-Dec-2017 15:32:17 EST musicman musicman
    Anybody know C well enough to tell me what this does?

    if (strcmp (row[slave_io_field], "Yes") != 0 || strcmp (row[slave_sql_field], "Yes") != 0) {
    mysql_free_result (res);
    mysql_close (&mysql);
    die (STATE_CRITICAL, "%s\n", slaveresult);
    }

    It's clearly checking for "Yes", but if it finds "Yes!" what happens? I could change things to be the string I'm finding, but that's not really ideal.
    In conversation Tuesday, 05-Dec-2017 15:32:17 EST from nu.federati.net permalink
    1. Ben Pfaff (blp@quitter.se)'s status on Tuesday, 05-Dec-2017 15:40:47 EST Ben Pfaff Ben Pfaff
      in reply to
      @musicman if (row[slave_io_field] != "yes" or row[slave_sql_field] != "yes") then die with an error
      In conversation Tuesday, 05-Dec-2017 15:40:47 EST from quitter.se permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.